ios粘贴功能

时间:2014-05-26 08:15:58   收藏:0   阅读:258

  NSString *path = [[NSBundlemainBundle] pathForResource:@"tmp_add"ofType:@"txt"];

    NSString *aStr = [NSStringstringWithContentsOfFile:path encoding:NSUTF8StringEncodingerror:nil];

    UIPasteboard *pasteboard = [UIPasteboardgeneralPasteboard];

    [pasteboard setString:aStr];

ios粘贴功能,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!