UIView Touch event at the bottom of the screen does not fire

I am having a strange problem. I created a UIView that takes place at the bottom of the screen (0,431,320,49), and then I want to deal with touch events.

When I touch the top of the UIView, it works. But when I touch the bottom (I mean, more than 20 pixels in relative position), the touchBegan event does not fire.

It looks like I'm having a problem with the network status bar, which will somehow change the behavior of my code.

Does anyone have any ideas?

Hi,

Mathieu

+3
source share
1 answer

, UIView , . , , , . , - , .

, (10,10,300,280) viewController (0, 0, 320, 480) . , subview , touch (0, 0) .

+3

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


All Articles