iPhone Input with Stacked Views
Posted
by Forrest
on Stack Overflow
See other posts from Stack Overflow
or by Forrest
Published on 2010-05-04T08:18:34Z
Indexed on
2010/05/04
8:48 UTC
Read the original article
Hit count: 258
Hi,
I've got a situation in an iphone application where buttons are not receiving input as I expect. Here's the setup:
ViewMain - The main view full of various images and labels ViewOverlay - A HUD like overlay view with two UIButton objects.
To create my scene I do the following:
viewController.view = ViewMain [ViewMain addsubview:ViewOverlay]
This view renders as expected, with ViewOverlay correctly rendered ontop of ViewMain. However the two buttons found inside ViewOverlay do not receive touch events and can not be pressed. Tapping them does nothing at all.
I very well may be going about this in the entirely wrong direction. Any ideas?
© Stack Overflow or respective owner