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

Total2,013,421
Week34,333
Month130,277

Installs

Apps14,667
Apps WeekApps This Week 1,949
Pod Tries10
Test Targets909
Test WeekTests This week 162
Watch Apps6
powered by Segment

GitHub

Stars663
Watchers11
Forks114
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.