- (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滚动到最后一行
最新推荐文章于 2020-12-19 08:25:02 发布
本文将介绍如何在SwiftUI中实现滚动到表格底部的功能,并通过代码示例进行详细解释。
176

被折叠的 条评论
为什么被折叠?



