[英]UIView not handling touches
I have set my status bar hidden in my Application. 我已将状态栏隐藏在我的应用程序中。 [application setStatusBarHidden:YES];
[application setStatusBarHidden:YES];
I have added an UIView on the window as a subview at 0,0,320,40. 我在窗口上添加了一个UIView作为0,0,320,40的子视图。 But I am not able to get touches on my View ?
但我无法接触到我的视图?
But if i am changing the 'Y' position like 0,30,320,40 its working fine. 但如果我改变'Y'位置,如0,30,320,40,它的工作正常。
What is the problem ??? 问题是什么 ???
Thanks 谢谢
Check isUserInteractionEnabled
on the view. 检查视图上的
isUserInteractionEnabled
。 Some views, like UIImageView
, disable that by default. 某些视图(如
UIImageView
默认禁用它。
检查是否有阻止它的子视图
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.