Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 27, 2009, 02:44 PM   #1
Danneman101
macrumors 6502
 
Join Date: Aug 2008
Press through UIView?

Im wondering if its possible to press right through a UIView?

I would like to have a button in the underlying view to recieve the press, but instead the view that is displayed on top is impeding this.

The view is placed on top of the underlying view using addSubview, so the underlying view is not pushed away or anything.

Possible?
Danneman101 is offline   0 Reply With Quote
Old Oct 27, 2009, 02:54 PM   #2
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
Quote:
Originally Posted by Danneman101 View Post
Possible?
Certainly.

Hint: So what you're saying is that you don't want to enable user interaction for your UIView, is that right?
__________________
dejo is offline   0 Reply With Quote
Old Oct 27, 2009, 04:55 PM   #3
Danneman101
Thread Starter
macrumors 6502
 
Join Date: Aug 2008
Great, that was the clue I needed - thanks a lot

Code:
UIView *myView = [[UIView alloc] initWithFrame:frame]; // main view
[view addSubview:myView2]; // subview
[myView2 setUserInteractionEnabled:NO]; // disable interaction with subview
Danneman101 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Trying to subclass UIView Hans Kamp iPhone/iPad Programming 3 Mar 25, 2013 12:15 AM
How to use block for UIView animation? mikezang iPhone/iPad Programming 13 Nov 24, 2012 11:58 PM
Archiving Custom UIView Ides iPhone/iPad Programming 14 Aug 8, 2012 05:44 PM
Simple UIView Question krayziekray iPhone/iPad Programming 5 Jun 19, 2012 05:17 AM
make uiview transparent without having the uiview's buttons transparent johnmerlino iPhone/iPad Programming 7 Jun 1, 2012 02:20 AM

Forum Jump

All times are GMT -5. The time now is 07:11 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC