Allowing interaction with a UIView under another UIView
Posted
by delany
on Stack Overflow
See other posts from Stack Overflow
or by delany
Published on 2009-11-07T21:43:40Z
Indexed on
2010/06/15
23:22 UTC
Read the original article
Hit count: 613
iphone
|objective-c
Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button?
For instance, at the moment I have a UIView (A) with an object at the top and an object at the bottom of the screen and nothing in the middle. This sits on top of another UIView that has buttons in the middle (B). However, I cannot seem to interact with the buttons in the middle of B.
I can see the buttons in B - I've set the background of A to clearColor - but the buttons in B do not seem to receive touches despite the fact that there are no objects from A actually on top of those buttons.
EDIT - I still want to be able to interact with the objects in the top UIView
Surely there is a simple way of doing this?
Many thanks,
D
© Stack Overflow or respective owner