RE: Button on side menu not working
RE: Button on side menu not working
- Subject: RE: Button on side menu not working
- From: Julius Oklamcak <email@hidden>
- Date: Sun, 28 Jul 2013 14:48:59 -0400
There could be two reasons:
> [self.view sendSubviewToBack:_menuView.view];
Is placing other UIViews in the view hierarchy on top of the menu view and
they could be eating touches.
> _menuView.view.frame=CGRectMake(-160,0,160,440);
> self.view.frame=CGRectMake(160, 20, 320, 548);
UIViews that are outside the bounds of their parent views do not receive
touch events. You need to over-ride -hitTest:withEvent: to over-ride this
default behavior.
Easiest is to keep your menu view within the bounds of the parent view and
make sure no other views are in front of it.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden