Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Zhukn1/SAMTextView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SAMTextView

Add a placeholder to UITextView.

SAMTextView is tested on iOS 6 and requires ARC. Released under the MIT license.

Usage

// Initialize a text view
SAMTextView *textView = [[SAMTextView alloc] initWithFrame:CGRectMake(20.0f, 20.0f, 280.0f, 280.0f)];

// Add a placeholder
textView.placeholder = @"Type something…";

// Change the placeholder color
textView.placeholderTextColor = [UIColor lightGrayColor];

See the header for full documentation.

Installation

Simply add the files in the SAMTextView.h and SAMTextView.m to your project or add SAMTextView to your Podfile if you're using CocoaPods.

About

Add a placeholder to UITextView.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 89.9%
  • Ruby 10.1%