开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜