diff options
-rw-r--r-- | Juick/AppDelegate.m | 22 | ||||
-rw-r--r-- | Juick/LaunchScreen.storyboard | 2 | ||||
-rw-r--r-- | Juick/Supporting Files/Juick-Info.plist | 2 |
3 files changed, 10 insertions, 16 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m index 43494cf..4cd7f2d 100644 --- a/Juick/AppDelegate.m +++ b/Juick/AppDelegate.m @@ -28,7 +28,10 @@ [[UINavigationBar appearance] setTintColor:[ColorScheme linkColor]]; //[[UINavigationBar appearance] setBarTintColor:[ColorScheme headerBackground]]; [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [ColorScheme linkColor]}]; - [[UINavigationBar appearance] setLargeTitleTextAttributes:@{NSForegroundColorAttributeName: [ColorScheme linkColor]}]; + UIFont *defaultLargeFont = [UIFont preferredFontForTextStyle: UIFontTextStyleLargeTitle]; + [[UINavigationBar appearance] setLargeTitleTextAttributes:@{NSForegroundColorAttributeName: [ColorScheme linkColor], + NSFontAttributeName:[UIFont fontWithName:@"Serpentine-BoldItalic" size:defaultLargeFont.pointSize] + }]; [[UIToolbar appearance] setTintColor:[ColorScheme linkColor]]; [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault; @@ -39,15 +42,6 @@ return YES; } --(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { - [self parseNotificationPayload:userInfo]; - if (application.applicationState == UIApplicationStateActive) { - UIStoryboard *main = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]]; - [main instantiateInitialViewController]; - } - completionHandler(UIBackgroundFetchResultNewData); -} - - (void)registerForRemoteNotifications { UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; center.delegate = self; @@ -80,15 +74,15 @@ //Called when a notification is delivered to a foreground app. -(void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler{ - NSDictionary *userInfo = notification.request.content.userInfo; - NSLog(@"User Info : %@", userInfo); - [self parseNotificationPayload:userInfo]; completionHandler(UNAuthorizationOptionSound | UNAuthorizationOptionAlert | UNAuthorizationOptionBadge); } //Called to let your app know which action was selected by the user for a given notification. -(void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler{ - NSLog(@"User Info : %@",response.notification.request.content.userInfo); + NSDictionary *userInfo = response.notification.request.content.userInfo; + NSLog(@"User Info : %@", userInfo); + [self parseNotificationPayload:userInfo]; + [self.window.rootViewController performSegueWithIdentifier:@"threadSegue" sender:self.window.rootViewController]; completionHandler(); } diff --git a/Juick/LaunchScreen.storyboard b/Juick/LaunchScreen.storyboard index be5fe7e..42e3ea8 100644 --- a/Juick/LaunchScreen.storyboard +++ b/Juick/LaunchScreen.storyboard @@ -18,7 +18,7 @@ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> - <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Splash.png" translatesAutoresizingMaskIntoConstraints="NO" id="D5d-4R-c9b"> + <imageView opaque="NO" clearsContextBeforeDrawing="NO" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Splash.png" translatesAutoresizingMaskIntoConstraints="NO" id="D5d-4R-c9b"> <rect key="frame" x="139.5" y="285.5" width="96" height="96"/> <color key="tintColor" red="0.0" green="0.40000000000000002" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> </imageView> diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist index 0b992da..16b325a 100644 --- a/Juick/Supporting Files/Juick-Info.plist +++ b/Juick/Supporting Files/Juick-Info.plist @@ -21,7 +21,7 @@ <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> - <string>1.0.36</string> + <string>1.0.39</string> <key>ITSAppUsesNonExemptEncryption</key> <false/> <key>LSApplicationCategoryType</key> |