- - (void)scrollTableToFoot:(BOOL)animated {
- NSInteger s = [self.chatTable numberOfSections];
- if (s<1) return;
- NSInteger r = [self.chatTable numberOfRowsInSection:s-1];
- if (r<1) return;
- NSIndexPath *ip = [NSIndexPath indexPathForRow:r-1 inSection:s-1];
- [self.chatTable scrollToRowAtIndexPath:ip atScrollPosition:UITableViewScrollPositionBottom animated:animated];
- }
UItableview滚动到最后一行
最新推荐文章于 2023-04-11 15:11:27 发布