Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Danneman101

macrumors 6502
Original poster
Aug 14, 2008
361
1
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?
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.