From 0c0bf22d9682fedbea38503d685d5475b7f56c77 Mon Sep 17 00:00:00 2001 From: chengouxuan Date: Thu, 18 Feb 2016 15:32:30 +0800 Subject: [PATCH] typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改一个没有驼峰标识的函数名 --- .../XHDemoWeChatMessageTableViewController.m | 2 +- .../Sections/Pages/IM/LeanChatMessageTableViewController.m | 2 +- .../XHDemoWeChatMessageTableViewController.m | 2 +- .../XHDemoWeChatMessageTableViewController.m | 2 +- .../XHMessageTableViewController.h | 2 +- .../XHMessageTableViewController.m | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Example/MessageDisplayKitCoreDataExample/MessageDisplayKitCoreDataExample/XHDemoWeChatMessageTableViewController.m b/Example/MessageDisplayKitCoreDataExample/MessageDisplayKitCoreDataExample/XHDemoWeChatMessageTableViewController.m index 975d613..59ea8c9 100644 --- a/Example/MessageDisplayKitCoreDataExample/MessageDisplayKitCoreDataExample/XHDemoWeChatMessageTableViewController.m +++ b/Example/MessageDisplayKitCoreDataExample/MessageDisplayKitCoreDataExample/XHDemoWeChatMessageTableViewController.m @@ -404,7 +404,7 @@ - (BOOL)shouldLoadMoreMessagesScrollToTop { return NO; } -- (void)loadMoreMessagesScrollTotop { +- (void)loadMoreMessagesScrollToTop { if (!self.loadingMoreMessage) { self.loadingMoreMessage = YES; diff --git a/Example/MessageDisplayKitLeanchatExample/MessageDisplayKitLeanchatExample/Sections/Pages/IM/LeanChatMessageTableViewController.m b/Example/MessageDisplayKitLeanchatExample/MessageDisplayKitLeanchatExample/Sections/Pages/IM/LeanChatMessageTableViewController.m index a286b45..8cb9372 100644 --- a/Example/MessageDisplayKitLeanchatExample/MessageDisplayKitLeanchatExample/Sections/Pages/IM/LeanChatMessageTableViewController.m +++ b/Example/MessageDisplayKitLeanchatExample/MessageDisplayKitLeanchatExample/Sections/Pages/IM/LeanChatMessageTableViewController.m @@ -365,7 +365,7 @@ - (BOOL)shouldLoadMoreMessagesScrollToTop { return YES; } -- (void)loadMoreMessagesScrollTotop { +- (void)loadMoreMessagesScrollToTop { if (self.messages.count == 0) { return; } else { diff --git a/Example/MessageDisplayKitStoryBoradExample/MessageDisplayKitStoryBoradExample/XHDemoWeChatMessageTableViewController.m b/Example/MessageDisplayKitStoryBoradExample/MessageDisplayKitStoryBoradExample/XHDemoWeChatMessageTableViewController.m index a80b53d..e6e0215 100644 --- a/Example/MessageDisplayKitStoryBoradExample/MessageDisplayKitStoryBoradExample/XHDemoWeChatMessageTableViewController.m +++ b/Example/MessageDisplayKitStoryBoradExample/MessageDisplayKitStoryBoradExample/XHDemoWeChatMessageTableViewController.m @@ -246,7 +246,7 @@ - (BOOL)shouldLoadMoreMessagesScrollToTop { return YES; } -- (void)loadMoreMessagesScrollTotop { +- (void)loadMoreMessagesScrollToTop { if (!self.loadingMoreMessage) { self.loadingMoreMessage = YES; diff --git a/Example/MessageDisplayKitWeChatExample/MessageDisplayKitWeChatExample/Controllers/XHDemoWeChatMessageTableViewController/XHDemoWeChatMessageTableViewController.m b/Example/MessageDisplayKitWeChatExample/MessageDisplayKitWeChatExample/Controllers/XHDemoWeChatMessageTableViewController/XHDemoWeChatMessageTableViewController.m index 9e57f5a..959aa8b 100644 --- a/Example/MessageDisplayKitWeChatExample/MessageDisplayKitWeChatExample/Controllers/XHDemoWeChatMessageTableViewController/XHDemoWeChatMessageTableViewController.m +++ b/Example/MessageDisplayKitWeChatExample/MessageDisplayKitWeChatExample/Controllers/XHDemoWeChatMessageTableViewController/XHDemoWeChatMessageTableViewController.m @@ -303,7 +303,7 @@ - (BOOL)shouldLoadMoreMessagesScrollToTop { return YES; } -- (void)loadMoreMessagesScrollTotop { +- (void)loadMoreMessagesScrollToTop { if (!self.loadingMoreMessage) { self.loadingMoreMessage = YES; diff --git a/MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.h b/MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.h index 75ddc0d..8a7fc7f 100644 --- a/MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.h +++ b/MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.h @@ -126,7 +126,7 @@ /** * 下拉加载更多消息,只有在支持下拉加载更多消息的情况下才会调用。 */ -- (void)loadMoreMessagesScrollTotop; +- (void)loadMoreMessagesScrollToTop; /** * 配置TableViewCell高度的方法,如果你想定制自己的Cell样式,那么你必须要实现DataSource中的方法 diff --git a/MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.m b/MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.m index e79675a..6479748 100644 --- a/MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.m +++ b/MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.m @@ -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]; } } }