简体   繁体   中英

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.

检查是否有阻止它的子视图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM