mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing launch screen on ios app. Also fixing upgrade link.
This commit is contained in:
parent
bd0032bb8a
commit
1a338b786b
7 changed files with 14 additions and 13 deletions
|
@ -325,7 +325,7 @@ def load_feeds_flat(request):
|
|||
day_ago = datetime.datetime.now() - datetime.timedelta(days=1)
|
||||
scheduled_feeds = []
|
||||
iphone_version = "2.1" # Preserved forever. Don't change.
|
||||
latest_ios_build = "53"
|
||||
latest_ios_build = "50"
|
||||
latest_ios_version = "5.0.0"
|
||||
|
||||
if include_favicons == 'false': include_favicons = False
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="8191" systemVersion="15A282b" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
|
||||
<dependencies>
|
||||
<deployment defaultVersion="1792" identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
||||
|
@ -13,15 +13,18 @@
|
|||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch_gradient.png" translatesAutoresizingMaskIntoConstraints="NO" id="xvc-Dc-4wh">
|
||||
<rect key="frame" x="0.0" y="0.0" width="480" height="533"/>
|
||||
<animations/>
|
||||
</imageView>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="logo_newsblur_512.png" translatesAutoresizingMaskIntoConstraints="NO" id="F6J-Zv-31D">
|
||||
<rect key="frame" x="112" y="139" width="256" height="256"/>
|
||||
<animations/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="256" id="obj-C4-yj7"/>
|
||||
<constraint firstAttribute="width" constant="256" id="rjg-Pr-FmI"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<animations/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="xvc-Dc-4wh" secondAttribute="bottom" id="1EC-OJ-ctU"/>
|
||||
|
|
|
@ -866,7 +866,7 @@ static UIFont *userLabelFont;
|
|||
return;
|
||||
} else {
|
||||
// this doesn't work in simulator!!! because simulator has no app store
|
||||
NSURL *url = [NSURL URLWithString:@"http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=463981119&mt=8"];
|
||||
NSURL *url = [NSURL URLWithString:@"itms://itunes.apple.com/us/app/mensa-essen/id463981119?ls=1&mt=8"];
|
||||
[[UIApplication sharedApplication] openURL:url];
|
||||
}
|
||||
}
|
||||
|
@ -1880,10 +1880,12 @@ heightForHeaderInSection:(NSInteger)section {
|
|||
[avatarRequest setTimeoutInterval:30.0];
|
||||
avatarImageView = [[UIImageView alloc] initWithFrame:userAvatarButton.customView.frame];
|
||||
CGSize avatarSize = avatarImageView.frame.size;
|
||||
typeof(self) __weak weakSelf = self;
|
||||
[avatarImageView setImageWithURLRequest:avatarRequest placeholderImage:nil success:^(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image) {
|
||||
typeof(weakSelf) __strong strongSelf = weakSelf;
|
||||
image = [Utilities imageWithImage:image convertToSize:CGSizeMake(avatarSize.width*2, avatarSize.height*2)];
|
||||
image = [Utilities roundCorneredImage:image radius:6];
|
||||
[(UIButton *)userAvatarButton.customView setImage:image forState:UIControlStateNormal];
|
||||
[(UIButton *)strongSelf.userAvatarButton.customView setImage:image forState:UIControlStateNormal];
|
||||
} failure:^(NSURLRequest * _Nonnull request, NSHTTPURLResponse * _Nonnull response, NSError * _Nonnull error) {
|
||||
NSLog(@"Could not fetch user avatar: %@", error);
|
||||
}];
|
||||
|
|
|
@ -417,7 +417,7 @@
|
|||
NSInteger position = [scroll integerValue];
|
||||
NSInteger maxPosition = (NSInteger)(floor(strongSelf.webView.scrollView.contentSize.height - strongSelf.webView.frame.size.height));
|
||||
if (position > maxPosition) {
|
||||
NSLog(@"Position too far, scaling back to max position: %ld > %ld", position, maxPosition);
|
||||
NSLog(@"Position too far, scaling back to max position: %ld > %ld", (long)position, maxPosition);
|
||||
position = maxPosition;
|
||||
}
|
||||
NSLog(@"Scrolling to %ld (%f+%f) on %@-%@", (long)position, strongSelf.webView.scrollView.contentSize.height, strongSelf.webView.frame.size.height, [story objectForKey:@"story_hash"], [strongSelf.activeStory objectForKey:@"story_title"]);
|
||||
|
|
|
@ -190,7 +190,8 @@ void drawLinearGradient(CGContextRef context, CGRect rect, CGColorRef startColor
|
|||
}
|
||||
|
||||
+ (NSString *)suffixForDayInDate:(NSDate *)date {
|
||||
NSInteger day = [[[[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar] components:NSDayCalendarUnit fromDate:date] day];
|
||||
NSInteger day = [[[[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]
|
||||
components:NSCalendarUnitDay fromDate:date] day];
|
||||
if (day == 11 || day == 12 || day == 13) {
|
||||
return @"th";
|
||||
} else if (day % 10 == 1) {
|
||||
|
|
Binary file not shown.
|
@ -113,11 +113,6 @@
|
|||
"idiom" : "ipad",
|
||||
"filename" : "logo_152.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "car",
|
||||
"size" : "120x120",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
|
|
Loading…
Add table
Reference in a new issue