#pragma mark 粘贴板 : 写入系统粘贴板
-(NSString *)writeToPasteBoard:(NSString *)content{
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
[pasteboard setString:content];
return 0;
}
#pragma mark 粘贴板 : 读取系统粘贴板
-(NSString *)readFromPasteBoard{
NSString *content = [[UIPasteboard generalPasteboard] string];
return content;
}
网友评论