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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -