Skip to content

Commit

Permalink
添加结束上拉的功能
Browse files Browse the repository at this point in the history
  • Loading branch information
xhzengAIB committed Sep 16, 2014
1 parent d6f60a6 commit 3a478be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions RefreshControl/Manager/XHRefreshControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ - (BOOL)isLoadMoreRefreshed {
BOOL loadMored = YES;
if ([self.delegate respondsToSelector:@selector(isLoadMoreRefreshed)]) {
loadMored = [self.delegate isLoadMoreRefreshed];
if (self.noMoreDataForLoaded) {
self.loadMoreView.hidden = NO;
}
self.loadMoreView.hidden = !loadMored;
return loadMored;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)loadDataSource {
dispatch_async(dispatch_get_main_queue(), ^{
if (self.requestCurrentPage) {
if (self.requestCurrentPage == arc4random() % 10) {
[self handleLoadMoreError];
[self endMoreOverWithMessage:@"段子已加载完"];
} else {

[self.dataSource addObjectsFromArray:dataSource];
Expand Down

0 comments on commit 3a478be

Please sign in to comment.