美文网首页
自定义PlaceHolderTextView继承UITextVi

自定义PlaceHolderTextView继承UITextVi

作者: 每天刷两次牙 | 来源:发表于2017-12-20 14:55 被阅读22次

- (PlaceHolderTextView *)textView{

if (!_textView ) {

_textView = [[PlaceHolderTextView alloc]initWithFrame:CGRectMake(LineX(10), LineY(10), WIDTH-20, LineY(60))];

_textView.backgroundColor = ZITIWHITECOLOR;

_textView.textColor = ZITIGRAYCOLOR;

_textView.font = [UIFont systemFontOfSize:13];

_textView.placeholder = @"请输入详细内容并上传清晰的照片,才有可能获得你想要的!";

_textView.returnKeyType = UIReturnKeyDone;

_textView.showsVerticalScrollIndicator = NO;

_textView.showsHorizontalScrollIndicator = NO;

_textView.tag = 152;

}

return _textView;

}

相关文章

网友评论

      本文标题:自定义PlaceHolderTextView继承UITextVi

      本文链接:https://www.haomeiwen.com/subject/kgugwxtx.html