【发布时间】:2013-02-05 05:17:01
【问题描述】:
我正在处理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
}
请告诉我复制方法哪里出了问题,以及如何粘贴
【问题讨论】:
标签: iphone ios uiwebview copy-paste