对于我正在编写的 iPad 应用程序,我有一个容器 UIView,其中包含两个子视图,它们是 UIView 子类:
- 一个 UIImageView,其图像的一部分被切掉以显示其下方的内容。
- UIImageView 下方的 UIButton,通过 UIImageView 的切除部分显示。
由于 UIImageView 在空间上与 UIButton 重叠,因此即使 UIButon 由于 UIImageView 中的 alpha 遮罩切口而完全可见,它也会阻止触摸到达 UIButton。如何允许 UIImageView 将触摸传递给它的兄弟 UIButton?
谢谢,
道格