UIView does not handle strokes

I set my status bar hidden in my application. [application setStatusBarHidden: YES];

I added a UIView in the window as a sub-view at 0.0320.40. But I can not touch my gaze?

But if I change the position of "Y" as 0.30,320.40, it works fine.

What is the problem???

thank

+3
source share
2 answers

Mark isUserInteractionEnabledin the view. Some views, for example UIImageView, disable this by default.

+3
source

check if there is a subrecord blocking it

+1
source

Source: https://habr.com/ru/post/1745219/


All Articles