OGeek|极客世界-中国程序员成长平台

标题: iphone - 如何以编程方式向下滚动表格 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 16:22
标题: iphone - 如何以编程方式向下滚动表格

我正在使用 UITable 实现气泡聊天, 我希望每次有人发布消息时表格向下滚动。 是否可以使表格 View 向下滚动? 我该怎么做?



Best Answer-推荐答案


你可能想要调用这个方法:

    [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:1] atScrollPosition:UITableViewScrollPositionTop animated:YES];

关于iphone - 如何以编程方式向下滚动表格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4280471/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4