Latest 0.0.2
Homepage https://github.com/bindurs/PlaceHolderTextView
License MIT
Platforms ios 8.0
Authors

A Custom Textview with Placeholder.

Installation

Manual

Drag and drop BRSPlaceHolderTextView.h and BRSPlaceHolderTextView.m files to your project

Cocoapods

Add this to your podfile :

pod 'BRSPlaceHolderTextView'

Usage

  • Creating TextView :

    self.textView=[[BRSPlaceHolderTextView alloc]initWithFrame:CGRectMake(0, 5,[UIScreen mainScreen].bounds.size.width, 50)];
  • Configuration :
    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;

Latest podspec

{
    "name": "BRSPlaceHolderTextView",
    "version": "0.0.2",
    "summary": "A Custom Textview with Placeholder.",
    "homepage": "https://github.com/bindurs/PlaceHolderTextView",
    "license": "MIT",
    "platforms": {
        "ios": "8.0"
    },
    "authors": {
        "Bindu R S": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bindurs/PlaceHolderTextView.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "BRSPlaceHolderTextView",
        "BRSPlaceHolderTextView/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This