Copy cut paste iphone sdk
I have a UIWebView. In this, i want to catch when the user use the copy menu in order to copy selection into a pasteboard.
Afterwards when the user touch a button, the content will be paste in a mail.
I want to intercept when the user click on copy or cut menu. so i had this two methods :
- (void)cut:(id)sender
{
NSLog(@"cuuuuuuuuuut");
}
- (void)copy:(id)sender
{
NSLog(@"copyyy");
}
when i click on the cut menu, NSlog开发者_开发百科 print cuuuuuuuuuut but when i click on the copy menu , NSLog print nothing (copy method isn't called).
why ?
May I suggest UIPasteboard in the documentation? (Developer membership required)
精彩评论