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