简体   繁体   中英

Redirect all user interaction on UIView

I have a sliding side menu but it is possible for the user to interact with the non-menu view controller, as it is only slid over by about half the width.

I would like to keep user interaction enabled, but redirect all actions to the method that closes te menu.

您可以在用户不应与之交互的视图上方添加模糊/不可见的视图,并添加触摸识别器以关闭侧面菜单,或者向视图添加触摸识别器,仅在侧面菜单时拍摄“关闭菜单”操作是可见的。

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