iphoneアプリでクリップボードにコピーさせる方法。
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setValue:@"文字列" forPasteboardType:@"public.utf8-plain-text"];
もちろん@"文字列"の部分を変数に変更することも可能。
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
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
Go to list of users who liked