Skip to content

Commit

Permalink
Appearance protocol support
Browse files Browse the repository at this point in the history
Added ability to specify the text / placeholder colors using
UIAppearance.
  • Loading branch information
NxSoftware committed Aug 31, 2013
1 parent 5cafe06 commit f43457d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion GCPlaceholderTextView/GCPlaceholderTextView.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
@interface GCPlaceholderTextView : UITextView

@property(nonatomic, strong) NSString *placeholder;
@property (nonatomic, strong) UIColor *placeholderColor;

@property (nonatomic, strong) UIColor *realTextColor UI_APPEARANCE_SELECTOR;
@property (nonatomic, strong) UIColor *placeholderColor UI_APPEARANCE_SELECTOR;

@end
1 change: 0 additions & 1 deletion GCPlaceholderTextView/GCPlaceholderTextView.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

@interface GCPlaceholderTextView ()

@property (nonatomic, strong) UIColor* realTextColor;
@property (unsafe_unretained, nonatomic, readonly) NSString* realText;

- (void) beginEditing:(NSNotification*) notification;
Expand Down

0 comments on commit f43457d

Please sign in to comment.