Need help with SAMTextView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

soffes
198 Stars 59 Forks MIT License 24 Commits 18 Opened issues

Description

Add a placeholder to UITextView.

Services available

!
?

Need anything else?

Contributors list

# 6,160
Objecti...
watchos
carthag...
swift-3
11 commits
# 533,448
Objecti...
Ruby
2 commits
# 168,828
Objecti...
Swift
websock...
phoenix
1 commit
# 328,772
CSS
time-se...
pytorch
keras-t...
1 commit
# 25,235
Objecti...
Django
aspects
objecti...
1 commit

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…";

For more advanced control of the placeholder, you can set the

attributedPlaceholder
property instead. 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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.