【发布时间】:2013-12-17 11:04:30
【问题描述】:
我想在 webview 中处理 UIResponderStandardEditActions 的复制/选择/selectAll/Patse 选项。但我遇到了问题,复制操作从未调用过,而且我观察到,在函数中((我有 webview,我正在使用 TTStyledTextLabel 显示文本)..
canPerformAction:(SEL)action withSender:(id)sender
复制:操作永远不会出现..但我确实看到所有其他选项,如 select , selectAll 和 cut 操作都被调用,即使复制操作从未在上面的函数中调用,当我在 webview 中选择文本时复制操作已启用但行动永远不会被调用..
【问题讨论】:
-
您可以从solution 开始更改
canPerformAction:withSender:实现并将其扩展到所有UIResponderStandardEditActions