滚动到最后一行

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

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

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

原文地址:https://www.cnblogs.com/ritian/p/5603063.html