Fixing iPad Pro image sizings. Screenshots for v6.0. Build 62. The iOS app v6.0 is now uploaded and awaiting approval.

This commit is contained in:
Samuel Clay 2016-04-06 18:14:06 -07:00
parent 924358dfa5
commit ef09c9f11f
28 changed files with 37 additions and 7 deletions

View file

@ -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 {

View file

@ -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>

View file

@ -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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 997 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 916 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB