滚动到最后一行

QQ会话中总是希望添加一行就向上滚动总是显示最新的消息

NSIndexPath *lastIndexPath = [NSIndexPath indexPathForRow:_messageArray.count-1 inSection:0];记录最下面的行的位置

[self.QQTalkTableView scrollToRowAtIndexPath:lastIndexPathatScrollPosition:UITableViewScrollPositionBottom animated:YES];滚到哪里

posted @ 2016-06-21 11:29  小眼奇遇记  阅读(109)  评论(0编辑  收藏  举报