首页 > 技术文章 > UITableView默认选中第一个cell

anyezhuixing 2015-06-03 16:53 原文

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    NSIndexPath *selectCell = [NSIndexPath indexPathForRow:0 inSection:0];
    [self.tableVIewSecondClass selectRowAtIndexPath:selectCell animated:NO scrollPosition:UITableViewScrollPositionNone];
  
}

 

推荐阅读