UITextView+Placeholder 1.2.0

UITextView+Placeholder 1.2.0

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

Maintained by Suyeol Jeon.


Downloads

Total962,535
Week23,484
Month93,514

Installs

Apps8,771
Apps WeekApps This Week 1,569
Pod Tries2
Test Targets623
Test WeekTests This week 135
Watch Apps4
powered by Segment

GitHub

Stars526
Watchers12
Forks92
Issues5
Contributors3
Pull Requests1

Code

Files2
SizeIntegration Size 20 kb
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.