• 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: [iPhone] UIMenuController not showing up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] UIMenuController not showing up


  • Subject: Re: [iPhone] UIMenuController not showing up
  • From: Alex Kac <email@hidden>
  • Date: Thu, 24 Jun 2010 15:20:50 -0500

your window has to become first responder. It has to respond to the canPerformAction:withSender: events.

On Jun 24, 2010, at 2:54 PM, PCWiz wrote:

> I have a button that is linked to an action in my view controller.
> This action is supposed to pop up a UIMenuController. Here's the code:
>
> UIMenuController *menuController = [UIMenuController sharedMenuController];
>    UIMenuItem *listMenuItem = [[UIMenuItem alloc]
> initWithTitle:@"List" action:@selector(addList:)];
>
>    [menuController setMenuItems:[NSArray arrayWithObject:listMenuItem]];
>    [menuController setTargetRect:CGRectMake(10.0, 10.0, 0, 0)
> inView:addButton];
>    [menuController setMenuVisible:YES animated:YES];
>
>    [listMenuItem release];
>
> I can confirm that the action method is being called, and that the
> menu items are being correctly set in the menu controller, but the
> menu just doesn't show up.
>
> Any help is appreciated.
> _______________________________________________
>
> 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

Alex Kac - President and Founder
Web Information Solutions, Inc.

"In the Country of the Blind, the one-eyed man is king."
--Desiderius Erasmus





_______________________________________________

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: 
 >[iPhone] UIMenuController not showing up (From: PCWiz <email@hidden>)

  • Prev by Date: [iPhone] UIMenuController not showing up
  • Next by Date: Best way to determine if a directory is a package
  • Previous by thread: [iPhone] UIMenuController not showing up
  • Next by thread: Best way to determine if a directory is a package
  • Index(es):
    • Date
    • Thread