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,159,762
Week24,767
Month105,615

Installs

Apps9,995
Apps WeekApps This Week 1,572
Pod Tries2
Test Targets686
Test WeekTests This week 146
Watch Apps5
powered by Segment

GitHub

Stars587
Watchers12
Forks99
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.