LoginSignup
10
8

More than 5 years have passed since last update.

【Objective-C】クリップボードにコピー

Posted at

iphoneアプリでクリップボードにコピーさせる方法。

UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setValue:@"文字列" forPasteboardType:@"public.utf8-plain-text"];

もちろん@"文字列"の部分を変数に変更することも可能。

10
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
8