如果把 cell 的 accessoryType 设置为 UITableViewCellAccessoryDetailDisclosureButton
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
会有如下所示按钮
- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
{
NSInteger row = indexPath.row;
if (row == 0) {
NSLog(@"点击了cell右边按钮");
//
}
}