I'd like to disable a button interaction if it is below another view.
On this example, my UIButton is the green frame. I can tap on it and it will call the right selector (with control event "UIControlEventTouchUpInside"). But this call also work if I tap on the red frame which is above the green button, and I don't want that...
Any help to disable the interaction where the button isn't visible?
通过设置固定:
theUpperView.userInteractionEnabled = YES;
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.