IPhone UIView:Is it possible to enable userinteraction only on subviews?

Posted by Syg on Stack Overflow See other posts from Stack Overflow or by Syg
Published on 2010-04-30T11:41:18Z Indexed on 2010/04/30 11:47 UTC
Read the original article Hit count: 384

Filed under:
|
|
|

Hi guys,

I created a viewcontroller that displays a button which is used to slide a view onto the screen. The idea is to place for instance three such viewcontrollers onscreen, resulting in three buttons at the bottom of the screen providing navigation.

The viewcontrollers get stacked, so to the top one is now overlaying the other views and therefore the other buttons. Only the top viewcontroller's button is working in this situation, where I would like all three of them to be clickable. I tried disabling userinteraction on the view and enabling it on the buttons only, but it looks like the superview settings overrule the subview settings.

Any ideas?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiview