【发布时间】:2018-01-15 17:49:22
【问题描述】:
我有一个包含部分而不是行的表格视图,每个部分都包含一个按钮,按下此按钮时已为该按钮设置了一个不作为功能,按下此按钮时我需要获取此部分的 indexPath,我使用了那些功能:
NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow];
NSString *orderId = [self.tableValues objectAtIndex:indexPath.section];
都返回 nil 问题出在 indexPath 值上, 但知道为什么吗? 谢谢
【问题讨论】: