美文网首页
didSelectRowAtIndexPath 代理方法不走

didSelectRowAtIndexPath 代理方法不走

作者: 三十一_iOS | 来源:发表于2016-03-09 10:24 被阅读400次
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

今天修改一个tableview,之前不需要处理点击事件,现在需要加载一个点击事件,但是发现代理方法不走。

检查代理,已设置,
检查是否有button在cell上拦截,没有,
手势,没有。

最后找打元凶:

Paste_Image.png
@property (nonatomic) BOOL allowsSelection NS_AVAILABLE_IOS(3_0);  // default is YES. Controls whether rows can be selected when not in editing mode

相关文章

网友评论

      本文标题:didSelectRowAtIndexPath 代理方法不走

      本文链接:https://www.haomeiwen.com/subject/upgzkttx.html