UITableView默认选中第一个cell

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

 

posted @ 2015-06-03 16:53  暗夜追星  阅读(799)  评论(1编辑  收藏  举报