Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (28 sloc) 0.692 kB
//
// SSTextView.h
// SSToolkit
//
// Created by Sam Soffes on 8/18/10.
// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
/**
@brief UITextView subclass that adds placeholder support like
UITextField has.
*/
@interface SSTextView : UITextView {
NSString *_placeholder;
UIColor *_placeholderColor;
@protected
BOOL _shouldDrawPlaceholder;
}
/**
@brief The string that is displayed when there is no other text in the text view.
The default value is nil.
*/
@property (nonatomic, retain) NSString *placeholder;
/**
@brief The color of the placeholder.
The default is [UIColor lightGrayColor].
*/
@property (nonatomic, retain) UIColor *placeholderColor;
@end
Jump to Line
Something went wrong with that request. Please try again.