文字复制到粘帖版
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = @“要复制的文字”;
文字做富文本
//做富文本
NSMutableAttributedString *attributedText2 =[[NSMutableAttributedString alloc] initWithString:_weightLab.text attributes:@{NSForegroundColorAttributeName : [UIColor grayColor]}];
//range为只更改你选中的区域
[attributedText2 setAttributes:@{NSForegroundColorAttributeName : [UIColor blackColor]} range:NSMakeRange(0, 2)];
_weightLab.attributedText = attri