UITextView添加placeHolder
2019-01-29 本文已影响6人
搬码小能手
```
UILabel*placeHolderLabel = [[UILabelalloc]init];
placeHolderLabel.text=@"写笔记...";
placeHolderLabel.numberOfLines=0;
placeHolderLabel.textColor= [UIColorlightGrayColor];
[placeHolderLabelsizeToFit];
[self.textViewaddSubview:placeHolderLabel];
```