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,789,202
Week32,535
Month138,358

Installs

Apps13,581
Apps WeekApps This Week 1,930
Pod Tries9
Pod Tries WeekPod Tries This Week 1
Test Targets860
Test WeekTests This week 161
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.