iPhone SDK allow touches to affect multiple views

Posted by Parad0x13 on Stack Overflow See other posts from Stack Overflow or by Parad0x13
Published on 2010-05-19T02:52:31Z Indexed on 2010/05/19 3:00 UTC
Read the original article Hit count: 300

Filed under:
|
|
|
|

I have a main view that has has two buttons on it that control methods to display the next image and display the previous image. In this case the 'Image' is a class that inherits from UIImageView and has multiple pictures on it that you can interact with, and I call this class a 'Pane'. The pane itself handles all the user interaction itself while the main view controls the display of next and previous panes with the buttons. Here is my dilemma, because the pane fully covers the main view it wont allow for the user to tap the buttons on the main view! So once a pane pops up you cannot change it via the buttons! Is there a way to allow touches through transparent parts of a view, or if not how in the world do I achieve this?!

I cannot pass touchesBegan or any of those methods from the pane to the superview because all of the button touch methods are created in the xib file.

I cannot insert the pane under the control panel because then you wouldn't be able to interact with the pane. And as far as I know theres no way to pass touch events to every single pane within the paneHoldingArray that belongs to the main view

I cannot add the command buttons inside of the pane because I want to be able to replace the command button's image with a thumbprint render of the next/previous pane.

I've been stuck on this for a very long time, please somebody help me out with a fix action or a new way to re-engineer the code so that it will work!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about view