【发布时间】:2011-02-16 05:55:01
【问题描述】:
我目前有一个 UIControl,它有许多子视图(图像、标签)。
不幸的是,当我使用 addTarget 等时,它没有检测到子视图上的触摸。
[myCustomView addTarget:self action:@selector(touchedView:)
forControlEvents:UIControlEventTouchUpInside];
UIControl 是否可以检测子视图上的触摸,或者我应该以不同的方式接近它。
【问题讨论】: