UITableView move to cell

前端 未结 3 1257
小鲜肉
小鲜肉 2020-12-09 01:02

I want to make next:

I have an UITableView that have to dispaly words (A-Z).

Currently when view did load I have one cell that displayed (and this is correct

3条回答
  •  春和景丽
    2020-12-09 01:41

    //For iOS 7 
            [self.TableView reloadData];
            NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:1];
            [TableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES];
    

提交回复
热议问题