UITextView+Placeholder 1.2.0

UITextView+Placeholder 1.2.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2016

Maintained by Suyeol Jeon.


Downloads

Total1,294,260
Week29,140
Month112,565

Installs

Apps10,949
Apps WeekApps This Week 1,666
Pod Tries2
Test Targets722
Test WeekTests This week 147
Watch Apps5
powered by Segment

GitHub

Stars612
Watchers11
Forks100
Issues6
Contributors4
Pull Requests1

Code

Files2
LOCLines of Code 150


  • By
  • devxoul

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.