我需要从UIWebView的编辑菜单中禁用Define菜单项。这应该通过实现canPerformAction:withSender:并为要禁用的项目返回NO来完成。尽管这些是私有(private)元素,但似乎我应该能够为我想保留的元素返回YES,而为其他所有元素返回NO(如thisquestion中)。但是这不起作用。documentation说是IfnoresponderintheresponderchainreturnsYES,themenucommandisdisabled.NotethatifyourclassreturnsNOforacommand,anotherrespon