Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Resetting a UIView Wellington2k iPhone/iPad Programming 3 Nov 11, 2011 08:20 AM
Scrolling down a UIView in interface builder when the UIView is bigger than screen roeik iPhone/iPad Programming 0 Nov 5, 2009 07:27 PM
redrawing an UIView from another UIView? qtmlr iPhone 0 Sep 2, 2008 08:26 PM
Fast forwarding through an audio track by pressing and holding? Wolfpup iPod touch 0 Jul 18, 2008 11:19 AM
Best way to lay out UI componenets / can a UIView contain a UIView springframework Mac Programming 2 Apr 1, 2008 05:24 PM


All times are GMT -5. The time now is 12:04 AM.

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

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