将exclusiveTouch设置为自定义UITableViewCell [英] setting exclusiveTouch to custom UITableViewCell
本文介绍了将exclusiveTouch设置为自定义UITableViewCell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将exclusiveTouch属性设置为我的自定义UITableViewCell。
I am trying to set the exclusiveTouch property to my custom UITableViewCell.
但是,添加此代码似乎不起作用。
However, adding this code does not seem to work.
for (UIView *view in cell.subviews)
{
if ([view isKindOfClass:[UIView class]])
{
view.exclusiveTouch = YES;
}
}
有人可以帮我弄清楚我遗漏的是什么吗?我做错了什么?
Could someone help me figuring out what I am missing or what I am doing wrong?
推荐答案
不确定但试一试:
cell.exclusiveTouch = YES
cell.contentView.exclusiveTouch = YES
这篇关于将exclusiveTouch设置为自定义UITableViewCell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文