简体   繁体   中英

How to interact with UIView behind UIScrollView

I was trying to replicate something similar to the new Path app in the fact that the UIScrollview houses the main content view, and when it scrolls over it shows the menus. My current implementation is I have the menu behind the scroll view and I have a transparent UIView covering where the menu is in the scroll view. That way when the scroll view swipes over you can fully see the menu. Problem is, you can;t interact behind the UIScrollview.

Does anyone know how to replicate the path type of functionality or be able to interact behind a UIScrollView?

Thanks a lot for the help.

For anyone else that is trying to accomplish this i solved it by implementing the didenddecelerating method and trimming the frame down to not cover the page UIView.

Then whenever the user begins to interact with the part of the main scrollview view the frame resizes again

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