Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo #305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

typo #305

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ - (BOOL)shouldLoadMoreMessagesScrollToTop {
return NO;
}

- (void)loadMoreMessagesScrollTotop {
- (void)loadMoreMessagesScrollToTop {
if (!self.loadingMoreMessage) {
self.loadingMoreMessage = YES;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ - (BOOL)shouldLoadMoreMessagesScrollToTop {
return YES;
}

- (void)loadMoreMessagesScrollTotop {
- (void)loadMoreMessagesScrollToTop {
if (self.messages.count == 0) {
return;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ - (BOOL)shouldLoadMoreMessagesScrollToTop {
return YES;
}

- (void)loadMoreMessagesScrollTotop {
- (void)loadMoreMessagesScrollToTop {
if (!self.loadingMoreMessage) {
self.loadingMoreMessage = YES;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ - (BOOL)shouldLoadMoreMessagesScrollToTop {
return YES;
}

- (void)loadMoreMessagesScrollTotop {
- (void)loadMoreMessagesScrollToTop {
if (!self.loadingMoreMessage) {
self.loadingMoreMessage = YES;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
/**
* 下拉加载更多消息,只有在支持下拉加载更多消息的情况下才会调用。
*/
- (void)loadMoreMessagesScrollTotop;
- (void)loadMoreMessagesScrollToTop;

/**
* 配置TableViewCell高度的方法,如果你想定制自己的Cell样式,那么你必须要实现DataSource中的方法
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1169,8 +1169,8 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView {
if (shouldLoadMoreMessages) {
if (scrollView.contentOffset.y >= 0 && scrollView.contentOffset.y <= 44) {
if (!self.loadingMoreMessage) {
if ([self.delegate respondsToSelector:@selector(loadMoreMessagesScrollTotop)]) {
[self.delegate loadMoreMessagesScrollTotop];
if ([self.delegate respondsToSelector:@selector(loadMoreMessagesScrollToTop)]) {
[self.delegate loadMoreMessagesScrollToTop];
}
}
}
Expand Down