一个带占位符的自定义 TextView。
将 BRSPlaceHolderTextView.h 和 BRSPlaceHolderTextView.m 文件拖放到您的项目中
self.textView=[[BRSPlaceHolderTextView alloc]initWithFrame:CGRectMake(0, 5,[UIScreen mainScreen].bounds.size.width, 50)];
self.textView.placeholderText = @"Enter Text ...";
self.textView.placeholderColor = UIColor.grayColor;
self.textView.placeholderFont = [UIFont fontWithName:@"Arial-BoldMT" size:14.0];
self.textView.textViewBorderWidth = 3;
self.textView.textViewCornerRadius = 5;
self.textView.textViewBorderColor = UIColor.blueColor;