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
so come know button touch events or hidden other views.
update :
i uploading screenshot
you have run project able see button above console pane.
you can refer apple documentation more details.
hope :)
Comments
Post a Comment