Perform copy/cut from UIResponderStandardEditActions

你离开我真会死。 提交于 2019-11-29 12:38:20

You need to send the action along the responder chain, starting with the "first responder". Try this:

[[UIApplication sharedApplication] sendAction:@selector(cut:) to:nil from:self forEvent:nil];

If you have the UIEvent that triggered the action, you might pass that as the last parameter.

You can read about the responder chain in Event Handling Guide for iOS: Event Delivery: The Responder Chain.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!