Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6128239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:36:16+00:00 2026-05-23T16:36:16+00:00

On the simulator I see the UIMenucontroller without a problem but it won’t appear

  • 0

On the simulator I see the UIMenucontroller without a problem but it won’t appear testing on device running iOs 4+ . It is a standard uitextview added using IB.

I have added these methods to the viewcontroller which is the delegate but I don’t think they are necessary since I want the standard menucontroller, select, copy, etc. Not to mention they are not being called.

thanks for the help

- (BOOL)canPerformAction:(SEL)action withSender:(id)sender {

    NSLog(@"Can perform action called");

    BOOL answer = NO;

    if (action == @selector(copy:))
    {
        answer = YES;
    }
    if (action == @selector(cut:))
    {
        answer = YES;     
    }
    if (action == @selector(paste:))
    {
        answer = YES;
    }
    if (action == @selector(select:))
    {
        answer = YES;
    }
   if (action == @selector(selectAll:))
    {
        answer = YES;
    }

    return answer;
}

- (BOOL) canBecomeFirstResponder {
    NSLog(@"can become first called");
    return YES;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:36:16+00:00Added an answer on May 23, 2026 at 4:36 pm

    You need to add a gesture recognizer, or override the touchesEnded:withEvent: method, and display the menu controller:

    //Assumes you assigned a CGRect for where the menu should appear to theRect
    UIMenuController *mc = [UIMenuController sharedMenuController];
    [mc setTargetRect:theRect inView:self];
    [mc setMenuVisible:YES animated:YES];
    

    You also should override the methods -copy,-cut,-paste, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app was building and running fine on the simulator and device, but I
My app runs fine in the simulator, but when running on the device, it
I have just allegedly downloaded iOS 3.2 simulator support.: However, I do not see
iPhone simulator is running on my Mac but it's not showing the simulator. Two
my app runs on iPhone device and also in simulator. Everythings seems fine, but
I am testing my app on SDK iOS Simulator to make sure it runs
I am testing how to create directories using internal storage, but how to see
When creating iPhone apps in simulator, I sometimes see messages like Springboard failed to
I have an iphone simulator running on my Mac. I have a .ipa file,
Are there any reasons why the simulator will display UIImageViews properly, but incorrectly on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.