最近公司让做一个聊天功能!由于数据的保密性,就没有用即时通讯而是做的我们推送加接口的 及时聊天! 那么功能已进入页面就要选中最后一行!
//index 是我们做的选中的行 这里我们可以自定义
dispatch_async(dispatch_get_main_queue(), ^{
[self.tableView reloadData];
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:NO];
});