tableView 第一次加载后定位到某一行

//在- (void)viewDidLoad方法中加入
//加载后自动定位到某一行
    NSIndexPath *idxPath = [NSIndexPath indexPathForRow:8 inSection:0];//定位到第8行
    [self.resultCommunityTableview scrollToRowAtIndexPath:idxPath 
                          atScrollPosition:UITableViewScrollPositionMiddle 
                                  animated:NO];
原文地址:https://www.cnblogs.com/qingjoin/p/2654340.html