开发者

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)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜