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,527,851
Week29,667
Month132,213

Installs

Apps12,186
Apps WeekApps This Week 1,722
Pod Tries2
Test Targets795
Test WeekTests This week 147
Watch Apps5
powered by Segment

GitHub

Stars644
Watchers11
Forks106
Issues6
Contributors4
Pull Requests2

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.