Questions tagged [uimenuitem]

An instance of the UIMenuItem class represents a custom item in the editing menu managed by the UIMenuController object. Custom menu items appear in the menu after any validated system items. A UIMenuItem object has two properties: a title and an action selector identifying the method to invoke in the handling responder object. Targets are not specified; a suitable target is found via normal traversal of the responder chain.

Available in iOS 3.2 and later in UIKit.

An instance of the UIMenuItem class represents a custom item in the editing menu managed by the UIMenuController object.

Custom menu items appear in the menu after any validated system items. A UIMenuItem object has two properties: a title and an action selector identifying the method to invoke in the handling responder object. Targets are not specified; a suitable target is found via normal traversal of the responder chain. To have custom menu items appear in the editing menu, you must add them to the menuItems property of the UIMenuController object.

54 questions
0
votes
1 answer

Blue highlighting not appear with custom UITextView

I created a subclass of UITextView to add a custom UIMenuItem. The problem is that when I press my custom action to display custom item, the text is not highlighted. Any idea? ActionsTextView.h #import @protocol ActionsDelegate…
mhergon
  • 1,688
  • 1
  • 18
  • 39
0
votes
1 answer

Showing custom UIView when UIMenuItem is clicked

So I've created a custom view which I want to be displayed at the bottom of the screen to when a UIMenuItem is clicked. I have in my ViewController.m : UIMenuController *menuController = [UIMenuController sharedMenuController]; UIMenuItem…
AJ9
  • 1,256
  • 1
  • 17
  • 28
0
votes
1 answer

[UIMenuController locationInView:]: unrecognized selector sent to instance 0x7f41ca0

When longpress on UIWebView I am displaying UIMenuController menuitem for click action. I have a note on UIMenuItem. When I click the note I need to store location coordinates to database. Before I used UILongPressGesture for storing coordinate…
user2967559
  • 97
  • 2
  • 13
0
votes
1 answer

select text inside UIWebView using singleTap

I have UIWebView for displaying articles. These are all HTML pages. I need to select text from articles. So, i'm using UIMenucontroller for select option. I need to select text while user tap on singleTap. But when use singleTap nothing…
0
votes
1 answer

Remove copy and define from UIMenuController

I have UIWebView for displaying some articles. I need to select some text from UIWebView and use bookmark. So i'm using selection = [wbCont stringByEvaluatingJavaScriptFromString:@"window.getSelection().toString()"]; But when i longpress the…
user2807197
  • 207
  • 1
  • 4
  • 12
0
votes
1 answer

Order of UIMenuItems in custom edit menu

I want to add my own commands to the selection menu, but also keep the standard "copy", "cut", etc. commands. I use this: UIMenuItem *myItem = [[UIMenuItem alloc] initWithTitle:@"My Command" action:@selector(myCommand:)]; [[UIMenuController…
illyge
  • 183
  • 1
  • 8
0
votes
1 answer

Edit and delete a UITableView row using UIMenuController

I have a UITableView that displays the data from my plist. Is there any way I could edit/delete the row's data using UIMenuController? It would be fine to use the traditional swipe-the-row in order to edit/delete the row, but I am using…
Jahm
  • 658
  • 1
  • 12
  • 27
0
votes
1 answer

UIMenuController not showing custom UIMenuItem in subclassed UITextView

I have a subclassed UITextView that I would like to show a custom UIMenuItem when a user pressed and holds in the UITextView. For the life of me, I cannot get my custom item to show. Here is what I am doing in viewDidLoad: UIMenuItem…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
-1
votes
1 answer

ios how to show modal view on clicking uimenuitem

I am developing an app where on click of table cell i am displaying UIMenuItem with 'Info' button. Now on clicking the info button i have to show a view and dismiss on click of cancel. In MytableView(Custom tableView) -(void)tableView : (UITableView…
Vidhyanand
  • 5,369
  • 4
  • 26
  • 59
1 2 3
4