ios - Opaque UIView not letting me scroll UIView behind it -


i have view hierarchy looks this.

buttonsview <-- uiview 1-3 small buttons mkmapview <-- bottom view

when buttonsview shown still want user able scroll mkmapview if user not touching of buttons.

i have tried different combinations of userinteractionenabled = no nothing helps.

you have several ways solve this:

  • the top view 3 small buttons can smaller, covers area 3 small buttons need. this, top view won't cover map view, , can still scroll around.

  • implement own hittest / pointinside functions let top view decide whether wants catch event (when tap on 1 of buttons) or decides send event further responder chain (when user taps else). see example here possible ways it: allowing interaction uiview under uiview


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -