我正在处理UIWebView
操作Copy
并且paste
..我不知道它到底是如何工作的..我需要做的是......当我点击链接时,它应该复制URL
和输入UiTextField
或者Browser bar
它应该能够粘贴......
我正在做的是:
- (void)actionSheet:(UIActionSheet *)actionSheet
clickedButtonAtIndex:(NSInteger)buttonIndex {
if([title isEqualToString:@"Copy"]){
NSURL *requestedURL = [request URL];
NSString *link = [requestedURL absoluteString];
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = link;
NSLog(@"paste is %@",pasteboard.string); // this does not give me the anything
}
请让我知道我在复制方法中哪里出错了,以及如何粘贴