Skip to content

Commit

Permalink
Merge pull request #1 from bcylin/master
Browse files Browse the repository at this point in the history
Update the class method of default placeholder color
  • Loading branch information
devxoul committed Dec 15, 2014
2 parents 9fe4132 + 577ba4a commit e488a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UITextView+Placeholder/UITextView+Placeholder.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ @implementation UITextView (Placeholder)
#pragma mark `defaultPlaceholderColor`

+ (UIColor *)defaultPlaceholderColor {
__block UIColor *color = nil;
static UIColor *color = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
UITextField *textField = [[UITextField alloc] init];
Expand Down

0 comments on commit e488a8c

Please sign in to comment.