Fixing iPad Pro image sizings. Screenshots for v6.0. Build 62. The iOS app v6.0 is now uploaded and awaiting approval.
|
@ -31,6 +31,8 @@
|
|||
#import "UIView+ViewController.h"
|
||||
#import "JNWThrottledBlock.h"
|
||||
|
||||
#define iPadPro ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad && ([UIScreen mainScreen].bounds.size.height == 1366 || [UIScreen mainScreen].bounds.size.width == 1366))
|
||||
|
||||
@interface StoryDetailViewController ()
|
||||
|
||||
@property (nonatomic, strong) NSString *loadingHTML;
|
||||
|
@ -384,9 +386,17 @@
|
|||
// NSLog(@"Drawing story: %@ / %d", [self.activeStory objectForKey:@"story_title"], contentWidth);
|
||||
|
||||
if (UIInterfaceOrientationIsLandscape(orientation) && !self.isPhoneOrCompact) {
|
||||
contentWidthClass = @"NB-ipad-wide";
|
||||
if (iPadPro) {
|
||||
contentWidthClass = @"NB-ipad-wide NB-ipad-pro-wide";
|
||||
} else {
|
||||
contentWidthClass = @"NB-ipad-wide";
|
||||
}
|
||||
} else if (!UIInterfaceOrientationIsLandscape(orientation) && !self.isPhoneOrCompact) {
|
||||
contentWidthClass = @"NB-ipad-narrow";
|
||||
if (iPadPro) {
|
||||
contentWidthClass = @"NB-ipad-narrow NB-ipad-pro-narrow";
|
||||
} else {
|
||||
contentWidthClass = @"NB-ipad-narrow";
|
||||
}
|
||||
} else if (UIInterfaceOrientationIsLandscape(orientation) && self.isPhoneOrCompact) {
|
||||
contentWidthClass = @"NB-iphone-wide";
|
||||
} else {
|
||||
|
@ -2170,9 +2180,17 @@ shouldStartLoadWithRequest:(NSURLRequest *)request
|
|||
NSString *contentWidthClass;
|
||||
|
||||
if (UIInterfaceOrientationIsLandscape(orientation) && !self.isPhoneOrCompact) {
|
||||
contentWidthClass = @"NB-ipad-wide";
|
||||
if (iPadPro) {
|
||||
contentWidthClass = @"NB-ipad-wide NB-ipad-pro-wide";
|
||||
} else {
|
||||
contentWidthClass = @"NB-ipad-wide";
|
||||
}
|
||||
} else if (!UIInterfaceOrientationIsLandscape(orientation) && !self.isPhoneOrCompact) {
|
||||
contentWidthClass = @"NB-ipad-narrow";
|
||||
if (iPadPro) {
|
||||
contentWidthClass = @"NB-ipad-narrow NB-ipad-pro-narrow";
|
||||
} else {
|
||||
contentWidthClass = @"NB-ipad-narrow";
|
||||
}
|
||||
} else if (UIInterfaceOrientationIsLandscape(orientation) && self.isPhoneOrCompact) {
|
||||
contentWidthClass = @"NB-iphone-wide";
|
||||
} else {
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
|
@ -60,9 +58,11 @@
|
|||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>61</string>
|
||||
<string>62</string>
|
||||
<key>FacebookAppID</key>
|
||||
<string>230426707030569</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
<array>
|
||||
<string>newsblur</string>
|
||||
|
|
|
@ -544,12 +544,24 @@ div + p {
|
|||
width: 500px !important;
|
||||
}
|
||||
|
||||
.NB-ipad-pro-narrow .NB-story img.NB-large-image {
|
||||
max-width: 754px;
|
||||
margin-left: -30px !important;
|
||||
width: 754px !important;
|
||||
}
|
||||
|
||||
.NB-ipad-wide .NB-story img.NB-large-image {
|
||||
max-width: 656px;
|
||||
margin-left: -90px !important;
|
||||
width: 656px !important;
|
||||
}
|
||||
|
||||
.NB-ipad-pro-wide .NB-story img.NB-large-image {
|
||||
max-width: 996px;
|
||||
margin-left: -90px !important;
|
||||
width: 996px !important;
|
||||
}
|
||||
|
||||
.NB-iphone-wide .NB-story img.NB-large-image {
|
||||
max-width: 568px;
|
||||
margin-left: -30px !important;
|
||||
|
|
BIN
media/img/iphone/v6.0 - iPad - 1.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
media/img/iphone/v6.0 - iPad - 2.png
Normal file
After Width: | Height: | Size: 2.2 MiB |
BIN
media/img/iphone/v6.0 - iPad - 3.png
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
media/img/iphone/v6.0 - iPad - 4.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
media/img/iphone/v6.0 - iPad - 5.png
Normal file
After Width: | Height: | Size: 2.4 MiB |
BIN
media/img/iphone/v6.0 - iPad Pro - 1.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
media/img/iphone/v6.0 - iPad Pro - 2.png
Normal file
After Width: | Height: | Size: 4.3 MiB |
BIN
media/img/iphone/v6.0 - iPad Pro - 3.png
Normal file
After Width: | Height: | Size: 3 MiB |
BIN
media/img/iphone/v6.0 - iPad Pro - 4.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
media/img/iphone/v6.0 - iPad Pro - 5.png
Normal file
After Width: | Height: | Size: 4.2 MiB |
BIN
media/img/iphone/v6.0 - iPhone 5s - 1.png
Normal file
After Width: | Height: | Size: 183 KiB |
BIN
media/img/iphone/v6.0 - iPhone 5s - 2.png
Normal file
After Width: | Height: | Size: 703 KiB |
BIN
media/img/iphone/v6.0 - iPhone 5s - 3.png
Normal file
After Width: | Height: | Size: 358 KiB |
BIN
media/img/iphone/v6.0 - iPhone 5s - 4.png
Normal file
After Width: | Height: | Size: 175 KiB |
BIN
media/img/iphone/v6.0 - iPhone 5s - 5.png
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s - 1.png
Normal file
After Width: | Height: | Size: 220 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s - 2.png
Normal file
After Width: | Height: | Size: 997 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s - 3.png
Normal file
After Width: | Height: | Size: 443 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s - 4.png
Normal file
After Width: | Height: | Size: 215 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s - 5.png
Normal file
After Width: | Height: | Size: 129 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s Plus - 1.png
Normal file
After Width: | Height: | Size: 422 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s Plus - 2.png
Normal file
After Width: | Height: | Size: 2.2 MiB |
BIN
media/img/iphone/v6.0 - iPhone 6s Plus - 3.png
Normal file
After Width: | Height: | Size: 916 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s Plus - 4.png
Normal file
After Width: | Height: | Size: 401 KiB |
BIN
media/img/iphone/v6.0 - iPhone 6s Plus - 5.png
Normal file
After Width: | Height: | Size: 218 KiB |