UITableView 让列表自动滑动(定位)到某一行

来源:互联网 发布:hopper mac 破解版 编辑:程序博客网 时间:2024/05/17 21:42
NSIndexPath*scrollIndexPath = [NSIndexPathindexPathForRow:10inSection:0];
[[selftableView]scrollToRowAtIndexPath:scrollIndexPath
       atScrollPosition:UITableViewScrollPositionTopanimated:YES];
原创粉丝点击