UIView not handling touches
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
精彩评论