草庐IT

ios - accessoryButtonTappedForRowWithIndexPath 不适用于自定义按钮或标签

overridefunctableView(tableView:UITableView,cellForRowAtIndexPathindexPath:NSIndexPath)->UITableViewCell{letkey=keyArray[indexPath.section-1]letlabel=UILabel(frame:CGRectMake(0,0,26,28))label.center=CGPointMake(26,28)cell.accessoryView=label}overridefunctableView(tableView:UITableView,accessoryB

ios - accessoryButtonTappedForRowWithIndexPath : not getting called

我正在创建一个详细信息披露按钮,该按钮正在使用数组进行填充...。但是我的类中未调用accessoryButtonTappedForRowWithIndexPath:函数。它是一个TableviewDelegate和TableviewDatasource委托(delegate)。-(void)tableView:(UITableView*)tableViewaccessoryButtonTappedForRowWithIndexPath:(NSIndexPath*)indexPath{NSLog(@"reachingaccessoryButtonTappedForRowWithInde