草庐IT

accessoryButtonTappedForRowWithIn

全部标签

ios - Disclosure Indicator 不调用 seque 而 Detail Disclosure 调用

我有一个有趣的问题。当人们单击TableView中的箭头时,我希望弹出详细信息屏幕。细胞是动态的。当我选择DisclosureIndicator时-我没有调用segue,也没有调用accessoryButtonTappedForRowWithIndexPath。当我将其更改为详细信息披露时,一切正常。我可以做些什么来使披露指示器像详细披露一样工作?有什么猜测吗?谢谢! 最佳答案 披露指示器不是按钮,因此不会触发tableView:accessoryButtonTappedForRowWithIndexPath:委托(delegate

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