TableView单元格 - 在页面加载时将特定行标记为已选中

时间:2014-03-05 13:54:37

标签: tableview cell

通常情况下,当您触摸屏幕时,TableView加载时不会选择任何单元格。 如何选择特定行?该行派生自数据库。

1 个答案:

答案 0 :(得分:1)

- (void)selectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated scrollPosition:(UITableViewScrollPosition)scrollPosition

是您需要的方法。

您可以在Apple网站上阅读更多相关信息。

https://developer.apple.com/library/ios/documentation/uikit/reference/UITableView_Class/Reference/Reference.html#//apple_ref/occ/instm/UITableView/selectRowAtIndexPath:animated:scrollPosition

相关问题