Last active
January 9, 2017 03:54
-
-
Save yonezawaizumi/013fbf6efd96929164d525ed1dcbd593 to your computer and use it in GitHub Desktop.
Firebaseプッシュ通知をObjective-Cで実装してみた ref: http://qiita.com/yonezawaizumi/items/fc9c37b08ad889304ff1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface AppDelegate () | |
// お知らせ表示用のナビゲーションコントローラー | |
@property(nonatomic, strong) UINavigationController *informationNavigationController; | |
@end | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// other initializing... | |
// addTabViewControllerWithClassは別途実装 | |
self.informationNavigationController = [self addTabViewControllerWithClass:[InformationViewController class] viewControllers:viewControllers customizedViewControllers:customizableViewControllers]; | |
// other initializing... | |
return YES; | |
} | |
- (void)changeTab { | |
self.tabBarController.selectedViewController = self.informationNavigationController; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment