ios - Swift : View in a UIScrollView is unable to detect touch -


so have uibutton in uiview within uiscrollview within uiviewcontroller within uiscrollview.. whole lot of layers know required. result got uibutton cannot tapped because touch can't detected on button. scrollviews working elements in final layer not detecting touches.

the layers follow:

uiviewcontroller ~uiscrollview ~~uiviewcontroller ~~~uiscrollview ~~~~uiview ~~~~~uibutton 

kindly tell me how can detect touch on last uiview?

you should debug view hierarchy clicking debug view hierarchy button

enter image description here this.

so come know button touch events or hidden other views.

update :

i uploading screenshot

enter image description here

you have run project able see button above console pane.

you can refer apple documentation more details.

hope :)


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -