We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a33b0c8 + 035ab2a commit 91914e0Copy full SHA for 91914e0
CSGrowingTextView/CSGrowingTextView/CSGrowingTextView.m
@@ -57,6 +57,9 @@ - (void)initialize {
57
_growAnimationDuration = 0.1;
58
_growAnimationOptions = UIViewAnimationOptionCurveEaseInOut;
59
60
+ #ifdef __IPHONE_9_0
61
+ _internalTextView = [[UITextView alloc] initWithFrame:self.bounds];
62
+ #else
63
// Fix for iOS 7+ jumping text problem
64
// Solution based on http://stackoverflow.com/a/19339716/740474
65
NSString *reqSysVer = @"7.0";
@@ -73,6 +76,7 @@ - (void)initialize {
73
76
} else {
74
77
_internalTextView = [[UITextView alloc] initWithFrame:self.bounds];
75
78
}
79
+ #endif
80
_internalTextView.font = [UIFont systemFontOfSize:15];
81
_internalTextView.autoresizingMask = (UIViewAutoresizingFlexibleWidth |
82
UIViewAutoresizingFlexibleHeight);
0 commit comments