我有一个子类UITextView,当用户按下并保存在UITextView中时,我想显示一个自定义的UITextView。为了我的生命,我无法展示我的定制物品。以下是我在viewDidLoad所做的工作
UIMenuItem *customMenuItem1 = [[UIMenuItem alloc] initWithTitle:@"Keywords" action:@selector(insertKeywords)];
[[UIMenuController sharedMenuController] setMenuItems:[NSArray arrayWithObject:customMenuItem1]];在我的子类UITextView中按下和保持,我仍然只看到“选择”和“选择所有”。
我需要做什么才能同时显示我的自定义项目?
发布于 2012-11-20 21:16:06
弄明白了。我从未实现过insertKeywords方法,因此从未显示过UIMenuItem!
https://stackoverflow.com/questions/13468045
复制相似问题