//在- (void)viewDidLoad方法中加入
//加载后自动定位到某一行
    NSIndexPath *idxPath = [NSIndexPath indexPathForRow:8 inSection:0];//定位到第8行
    [self.resultCommunityTableview scrollToRowAtIndexPath:idxPath 
                          atScrollPosition:UITableViewScrollPositionMiddle 
                                  animated:NO];

相关文章: