• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Button on side menu not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Button on side menu not working (From: Devarshi Kulshreshtha <email@hidden>)

  • Prev by Date: Button on side menu not working
  • Next by Date: Printing Problem
  • Previous by thread: Button on side menu not working
  • Next by thread: Printing Problem
  • Index(es):
    • Date
    • Thread