aelam / UITextView-Placeholder

A missing placeholder for UITextView.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UITextView+Placeholder

CocoaPods

A missing placeholder for UITextView.

Installation

Use CocoaPods.

pod 'UITextView+Placeholder'

Usage

Create UITextView, then set placeholder.

UITextView *textView = [[UITextView alloc] init];
textView.placeholder = @"How are you?";
textView.placeholderColor = [UIColor lightGrayColor]; // optional

Congratulations! You're done.

--

Since 1.1.0 you can use attributedPlaceholder.

textView.attributedPlaceholder = ... // NSAttributedString

License

UITextView+Placeholder is under MIT license. See LICENSE for more information.

About

A missing placeholder for UITextView.

License:MIT License


Languages

Language:Objective-C 95.1%Language:Ruby 4.9%