From 013dd88aeab0803f45a4684775212ad8f20875ea Mon Sep 17 00:00:00 2001 From: Kostas Antonopoulos Date: Mon, 19 May 2014 18:13:58 +0300 Subject: [PATCH] Fixed drawInRect to support iOS7 in SSTextView --- SSToolkit/SSTextView.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SSToolkit/SSTextView.m b/SSToolkit/SSTextView.m index cfadfcc..1caaa15 100644 --- a/SSToolkit/SSTextView.m +++ b/SSToolkit/SSTextView.m @@ -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}]; } }