Skip to content

Commit

Permalink
修改Delegate为可选触发回调
Browse files Browse the repository at this point in the history
  • Loading branch information
xhzengAIB committed Aug 31, 2015
1 parent 8d05551 commit af32697
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RefreshControl/Manager/XHRefreshControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ - (void)startLoadMoreRefreshing {
if (self.loadMoreRefreshing)
return;
[self callLoadMoreStatus];
[self.delegate startLoadMoreForAutoTrigger];
if ([self.delegate respondsToSelector:@selector(startLoadMoreForAutoTrigger)]) {
[self.delegate startLoadMoreForAutoTrigger];
}
}

- (void)callLoadMoreStatus {
Expand Down

0 comments on commit af32697

Please sign in to comment.