UITableView中selectRowAtIndexPath: animated:scrollPosition滚动到指定Row
生活随笔
收集整理的這篇文章主要介紹了
UITableView中selectRowAtIndexPath: animated:scrollPosition滚动到指定Row
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
- (void)viewDidLoad{
//調用下面封裝的方法
[self performSelectorOnMainThread:@selector(didSelectToProperCell) withObject:nil waitUntilDone:NO];
}
//寫一個方法
- (void)didSelectToProperCell{
?? ?
??? [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:self.index inSection:0] animated:YES scrollPosition:(UITableViewScrollPositionTop)];
?? ?
}
?
本文章屬于原文、請勿轉載!
轉載于:https://www.cnblogs.com/Yishu/p/6043052.html
總結
以上是生活随笔為你收集整理的UITableView中selectRowAtIndexPath: animated:scrollPosition滚动到指定Row的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 深度解析CNN
- 下一篇: Linux终端下 dstat 监控工具