如何在 NSLog 中显示从表格 View 中选择的单元格?
最佳答案
实现 didSelectRowAtIndexPath UITableview 委托(delegate)并记录 indexPath.row。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSLog(@"selected tableview row is %d",indexPath.row);
}
关于iphone - 显示 NSLog 中选择的 tableview 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12551070/