diff --git a/Core/Source/DTCoreTextFontDescriptor.m b/Core/Source/DTCoreTextFontDescriptor.m index 0d76b62ae..407bcdfb7 100644 --- a/Core/Source/DTCoreTextFontDescriptor.m +++ b/Core/Source/DTCoreTextFontDescriptor.m @@ -70,7 +70,7 @@ + (void)initialize DTVersion *version = [DTVersion osVersion]; // seems to be fixed in iOS 6 - if (version.majorVersion<6) + if (version.major<6) { _needsChineseFontCascadeFix = YES; } diff --git a/Core/Source/DTCoreTextLayoutFrame.m b/Core/Source/DTCoreTextLayoutFrame.m index 4748a05cf..195875315 100644 --- a/Core/Source/DTCoreTextLayoutFrame.m +++ b/Core/Source/DTCoreTextLayoutFrame.m @@ -507,9 +507,7 @@ - (void)_buildLinesWithStandardFramesetter //[self _correctLineOrigins]; // --- begin workaround for image squishing bug in iOS < 4.2 - DTVersion *version = [DTVersion osVersion]; - - if (version.majorVersion<4 || (version.majorVersion==4 && version.minorVersion < 2)) + if ([DTVersion osVersionIsLessThen:@"4.2"]) { [self _correctAttachmentHeights]; }