Skip to content

Commit

Permalink
fix the auto load more conver manual.
Browse files Browse the repository at this point in the history
  • Loading branch information
xhzengAIB committed Jun 9, 2014
1 parent a0675ef commit de8015b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2376,14 +2376,14 @@
AB41A58F194274840095C12C /* RefreshViews */ = {
isa = PBXGroup;
children = (
AB41A590194274950095C12C /* XHRefreshCircleView.h */,
AB41A591194274950095C12C /* XHRefreshCircleView.m */,
ABBA5D0A19427D96008BA06D /* XHRefreshControl.h */,
ABBA5D0B19427D96008BA06D /* XHRefreshControl.m */,
AB41A595194274AC0095C12C /* XHRefreshView.h */,
AB41A596194274AC0095C12C /* XHRefreshView.m */,
AB41A590194274950095C12C /* XHRefreshCircleView.h */,
AB41A591194274950095C12C /* XHRefreshCircleView.m */,
AB41A59A194279380095C12C /* XHLoadMoreView.h */,
AB41A59B194279380095C12C /* XHLoadMoreView.m */,
ABBA5D0A19427D96008BA06D /* XHRefreshControl.h */,
ABBA5D0B19427D96008BA06D /* XHRefreshControl.m */,
);
path = RefreshViews;
sourceTree = "<group>";
Expand Down
2 changes: 2 additions & 0 deletions MessageDisplayKit/Classes/Views/RefreshViews/XHLoadMoreView.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@

- (void)endLoading;

- (void)configuraManualState;

@end
5 changes: 5 additions & 0 deletions MessageDisplayKit/Classes/Views/RefreshViews/XHLoadMoreView.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ - (void)endLoading {
[self.activityIndicatorView stopAnimating];
}

- (void)configuraManualState {
self.hidden = NO;
[self.loadMoreButton setTitle:@"显示下20条" forState:UIControlStateNormal];
}

#pragma mark - Propertys

- (UIButton *)loadMoreButton {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ - (void)endPullDownRefreshing {
#pragma mark - Load More Refreshing Method

- (void)startLoadMoreRefreshing {
NSLog(@"进入上提多少次");
// if (self.loadMoreRefreshedCount < self.autoLoadMoreRefreshedCount) {
[self callBeginLoadMoreRefreshing];
// }
if (self.loadMoreRefreshedCount < self.autoLoadMoreRefreshedCount) {
[self callBeginLoadMoreRefreshing];
} else {
[self.loadMoreView configuraManualState];
}
}

- (void)callBeginLoadMoreRefreshing {
Expand Down

0 comments on commit de8015b

Please sign in to comment.