我创建这是越来越使用数组填充的详细披露按钮....然而accessoryButtonTappedForRowWithIndexPath:功能不被称为我的课.这是一个TableviewDelegate和TableviewDatasource委托.
- (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没有打印到控制台,这使我相信函数没有被调用...这当然是我选择一个单元格.下面的屏幕截图显示了我如何设置单元格.
