相关疑难解决方法(0)

accessoryButtonTappedForRowWithIndexPath:没有被调用

我创建这是越来越使用数组填充的详细披露按钮....然而accessoryButtonTappedForRowWithIndexPath:功能不被称为我的课.这是一个TableviewDelegateTableviewDatasource委托.

- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath{
    NSLog(@"reaching accessoryButtonTappedForRowWithIndexPath:");
    [self performSegueWithIdentifier:@"modaltodetails" sender:[self.eventsTable cellForRowAtIndexPath:indexPath]];
}
Run Code Online (Sandbox Code Playgroud)

NSLog没有打印到控制台,这使我相信函数没有被调用...这当然是我选择一个单元格.下面的屏幕截图显示了我如何设置单元格.

在此输入图像描述

objective-c uitableview accessoryview ios

30
推荐指数
5
解决办法
3万
查看次数

标签 统计

accessoryview ×1

ios ×1

objective-c ×1

uitableview ×1