Skip to content

Commit

Permalink
2.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vfr committed Sep 26, 2014
1 parent ad22e0d commit a02114f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Sources/ReaderContentView.m
Expand Up @@ -121,9 +121,14 @@ - (instancetype)initWithFrame:(CGRect)frame fileURL:(NSURL *)fileURL page:(NSUIn
userInterfaceIdiom = [UIDevice currentDevice].userInterfaceIdiom; // User interface idiom

#ifndef __arm64__ // Only under 32-bit iOS
if (userInterfaceIdiom == UIUserInterfaceIdiomPhone) // UIScrollView bug in iOS 8.0 workaround
if (userInterfaceIdiom == UIUserInterfaceIdiomPhone) // iOS 8.0 UIScrollView bug workaround
{
if ([[UIDevice currentDevice].systemVersion isEqualToString:@"8.0"]) bugFixWidthInset = 4.0f;
NSString *iosVersion = [UIDevice currentDevice].systemVersion; // iOS version as a string

if ([@"8.0" compare:iosVersion options:NSNumericSearch] != NSOrderedDescending) // 8.0 and up
{
bugFixWidthInset = 4.0f; // Slightly reduce width of content view
}
}
#endif // End of only under 32-bit iOS code

Expand Down

0 comments on commit a02114f

Please sign in to comment.