标签:style color ar sp strong on bs size as
1. 实现UITextView的代理方法
text.view.delegate = self;
2. 在UITextView上覆盖UILabel
ps:必须实现
label.enabled = NO;
label.backgroundColor = [UIColor clearColor];
3. 在UITextView - Delegate中实现
-(void)textViewDidChange:(UITextView *)textView
{
inputTextView.text = textView.text;
if (textView.text.length == 0) {
bgLabel.text = @"请输入要呼唤的内容...";
}else{
bgLabel.text = @"";
}
}
标签:style color ar sp strong on bs size as
原文地址:http://blog.csdn.net/qq_16855025/article/details/40780731