NSString *path = [[NSBundlemainBundle] pathForResource:@"tmp_add"ofType:@"txt"];
NSString *aStr = [NSStringstringWithContentsOfFile:path encoding:NSUTF8StringEncodingerror:nil];
UIPasteboard *pasteboard = [UIPasteboardgeneralPasteboard];
[pasteboard setString:aStr];
原文地址:http://www.cnblogs.com/gcat/p/3747708.html