diff --git a/GCPlaceholderTextView/GCPlaceholderTextView.h b/GCPlaceholderTextView/GCPlaceholderTextView.h index c548034..088dacd 100644 --- a/GCPlaceholderTextView/GCPlaceholderTextView.h +++ b/GCPlaceholderTextView/GCPlaceholderTextView.h @@ -8,12 +8,16 @@ #import - +IB_DESIGNABLE @interface GCPlaceholderTextView : UITextView -@property(nonatomic, strong) NSString *placeholder; +@property(nonatomic, strong) IBInspectable NSString *placeholder; + +@property (nonatomic, strong) IBInspectable UIColor *realTextColor; //UI_APPEARANCE_SELECTOR +@property (nonatomic, strong) IBInspectable UIColor *placeholderColor; //UI_APPEARANCE_SELECTOR -@property (nonatomic, strong) UIColor *realTextColor UI_APPEARANCE_SELECTOR; -@property (nonatomic, strong) UIColor *placeholderColor UI_APPEARANCE_SELECTOR; +// I don't know what's 'UI_APPEARANCE_SELECTOR' means, +// but if i don't remove it, +// `realTextColor` and `placeholderColor` property won't show in the Storyboard; @end