From 58bbc05dceb86f3b508cc42605d84ba748066ce1 Mon Sep 17 00:00:00 2001 From: rfj001 Date: Thu, 10 Jul 2014 03:16:35 -0400 Subject: [PATCH] Update HPTextViewInternal.m drawInRect:withFont: is deprecated as of iOS7 (line 114) drawInRect:withAttributes: should be used instead. --- class/HPTextViewInternal.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/HPTextViewInternal.m b/class/HPTextViewInternal.m index f3a6a1d..dcbe8f6 100644 --- a/class/HPTextViewInternal.m +++ b/class/HPTextViewInternal.m @@ -111,7 +111,7 @@ - (void)drawRect:(CGRect)rect } else { [self.placeholderColor set]; - [self.placeholder drawInRect:CGRectMake(8.0f, 8.0f, self.frame.size.width - 16.0f, self.frame.size.height - 16.0f) withFont:self.font]; + [self.placeholder drawInRect:CGRectMake(8.0f, 8.0f, self.frame.size.width - 16.0f, self.frame.size.height - 16.0f) withAttributes:@{NSFontAttributeName: self.font}]; } } }