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  暗夜追星  阅读(806)  评论(1)    收藏  举报