开发者

UIView not handling touches

开发者 https://www.devze.com 2022-12-30 16:48 出处:网络
I have set my status bar hidden in my Application.开发者_高级运维 [application setStatusBarHidden:YES];

I have set my status bar hidden in my Application.开发者_高级运维 [application setStatusBarHidden:YES];

I have added an UIView on the window as a subview at 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.

What is the problem ???

Thanks


Check isUserInteractionEnabled on the view. Some views, like UIImageView, disable that by default.


check if there is a sub-view blocking it

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号