Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed drawInRect to support iOS7 in SSTextView #1

Open
wants to merge 1 commit into from

1 participant

Kostas Antonopoulos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 19, 2014
  1. Kostas Antonopoulos
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  SSToolkit/SSTextView.m
3  SSToolkit/SSTextView.m
View
@@ -70,8 +70,7 @@ - (void)drawRect:(CGRect)rect {
[super drawRect:rect];
if (_shouldDrawPlaceholder) {
- [_placeholderTextColor set];
- [_placeholder drawInRect:CGRectMake(8.0f, 8.0f, self.frame.size.width - 16.0f, self.frame.size.height - 16.0f) withFont:self.font];
+ [_placeholder drawInRect:CGRectMake(5.0f, 8.0f, self.frame.size.width - 16.0f, self.frame.size.height - 16.0f) withAttributes:@{NSFontAttributeName:self.font,NSForegroundColorAttributeName:_placeholderTextColor}];
}
}
Something went wrong with that request. Please try again.