【问题标题】:How to programaticly scroll down a UITable如何以编程方式向下滚动表格
【发布时间】:2010-11-25 19:57:07
【问题描述】:

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

【问题讨论】:

  • 很好,我也想要这个。谢谢。

标签: iphone xcode uitableview ios


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2012-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-04
    • 2017-04-13
    相关资源
    最近更新 更多