·基本使用
UIPasteboard *pboard = [UIPasteboard generalPasteboard];
// 赋值
pboard.string = @"hello";
pboard.image = [UIImage imageNamed:@"xxx"];
// 取值
NSString *str = pboard.string;
UIImage *image = pboard.image;
·可以赋值的属性
@property(nullable,nonatomic,copy) NSString *string;
@property(nullable,nonatomic,copy) NSArray<NSString *> *strings;
@property(nullable,nonatomic,copy) NSURL *URL;
@property(nullable,nonatomic,copy) NSArray<NSURL *> *URLs;
@property(nullable,nonatomic,copy) UIImage *image;
@property(nullable,nonatomic,copy) NSArray<UIImage *> *images;
@property(nullable,nonatomic,copy) UIColor *color;
@property(nullable,nonatomic,copy) NSArray<UIColor *> *colors;