BRSPlaceHolderTextView 0.0.2

BRSPlaceHolderTextView 0.0.2

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最新发布2017年6月

Bindu R S维护。



  • 作者:
  • Bindu R S

一个带占位符的自定义 TextView。

安装

手动

将 BRSPlaceHolderTextView.h 和 BRSPlaceHolderTextView.m 文件拖放到您的项目中

使用

  • 创建 TextView
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;