我有一个按钮应该调用tableview的委托(delegate)方法
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
点击该按钮时。
谁能告诉我怎么做。
最佳答案
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:0];
[self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionNone];
[self tableView:self.tableView didSelectRowAtIndexPath:indexPath];
关于ios - 如何手动调用UITableView的delegate方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19813127/