iphoneアプリでクリップボードにコピーさせる方法。
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setValue:@"文字列" forPasteboardType:@"public.utf8-plain-text"];
もちろん@"文字列"の部分を変数に変更することも可能。
More than 5 years have passed since last update.
iphoneアプリでクリップボードにコピーさせる方法。
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setValue:@"文字列" forPasteboardType:@"public.utf8-plain-text"];
もちろん@"文字列"の部分を変数に変更することも可能。
Register as a new user and use Qiita more conveniently