hanspinckaers/GrowingTextView

in the measureHeight Function

Closed this issue · 0 comments

i do not kown why you use __IPHONE_OS_VERSION_MAX_ALLOWED ? when i set baseSDK with ios7.0 in xcode5 ,and run the app int the device of ios6.0 ,it awlays go to sizeThatFits .
code:

  • (CGFloat)measureHeight
    {
    NSLog(@"%d",__IPHONE_OS_VERSION_MAX_ALLOWED);
    #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
    return ceilf([self.internalTextView sizeThatFits:self.internalTextView.frame.size].height);
    #else
    return self.internalTextView.contentSize.height;
    #endif
    }