开发者

Copy cut paste iphone sdk

开发者 https://www.devze.com 2022-12-10 02:45 出处:网络
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.

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消