[英]UIMenuController is not working in ios6
I am working on ios6, and am developing one iphone app. 我正在开发ios6,并且正在开发一个iPhone应用程序。 In this app I am using
UIMenuController
for copy option. 在这个应用程序中,我使用
UIMenuController
作为复制选项。 The Copy option is working fine in ios5, but it is not working in ios6. “复制”选项在ios5中工作正常,但在ios6中不工作。 I can't display the copy option.
我无法显示复制选项。
Below I have attached my code. 下面附上我的代码。 Please somebody help me how to solve this issue.
请有人帮我解决这个问题。
- (BOOL) canPerformAction: (SEL) action withSender: (id) sender
{
if (action == @selector(paste:))
{
return NO;
}
else
{
return (action == @selector(copy:));
}
}
- (BOOL) canPerformAction: (SEL) action withSender: (id) sender
{
if (action == @selector(paste:))
{
return NO;
}
else
{
return (action == @selector(copy:));
}
}
return [super canPerformAction:action withSender:sender];
}
try this, hope it helps!! 试试这个,希望对你有帮助!!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.