Skip to content

Instantly share code, notes, and snippets.

@yonezawaizumi
Last active January 9, 2017 03:54
Show Gist options
  • Save yonezawaizumi/013fbf6efd96929164d525ed1dcbd593 to your computer and use it in GitHub Desktop.
Save yonezawaizumi/013fbf6efd96929164d525ed1dcbd593 to your computer and use it in GitHub Desktop.
Firebaseプッシュ通知をObjective-Cで実装してみた ref: http://qiita.com/yonezawaizumi/items/fc9c37b08ad889304ff1
@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