How do you REALLY remove Copy from UIMenuController

The technique you linked to still seems to work. I implemented a UIWebView subclass with these methods, and only the A and B items appeared. + (void)initialize { UIMenuItem *itemA = [[UIMenuItem alloc] initWithTitle:@”A” action:@selector(a:)]; UIMenuItem *itemB = [[UIMenuItem alloc] initWithTitle:@”B” action:@selector(b:)]; [[UIMenuController sharedMenuController] setMenuItems:[NSArray arrayWithObjects:itemA, itemB, nil]]; [itemA release]; [itemB release]; } – (BOOL)canPerformAction:(SEL)action … Read more

How to show a custom UIMenuItem for a UITableViewCell?

As far as I understand there are two main problems: 1) you expect tableView canPerformAction: to support custom selectors while the documentation says it supports only two of UIResponderStandardEditActions (copy and/or paste); 2) there’s no need for the part || action == @selector(test:) as you are adding the custom menu options by initializing menuItems property. … Read more