Today's Menu  Portugal
journal and plan nutrition
Instance Methods | Properties | List of all members
AppDelegate Class Reference

#import <AppDelegate.h>

Inheritance diagram for AppDelegate:
Inheritance graph
[legend]
Collaboration diagram for AppDelegate:
Collaboration graph
[legend]

Instance Methods

(BOOL) - application:didFinishLaunchingWithOptions: [implementation]
 
(void) - applicationWillResignActive: [implementation]
 
(BOOL) - application:openURL:options: [implementation]
 
(void) - applicationDidEnterBackground: [implementation]
 
(void) - applicationWillEnterForeground: [implementation]
 
(void) - applicationDidBecomeActive: [implementation]
 
(void) - applicationWillTerminate: [implementation]
 

Properties

UIWindow * window
 
UITabBarController * tabBarController
 

Detailed Description

Google signin from https://developers.google.com/identity/sign-in/ios/sign-in thank you

Definition at line 11 of file AppDelegate.h.

Method Documentation

◆ application:didFinishLaunchingWithOptions:()

- (BOOL) application: (UIApplication *)  application
didFinishLaunchingWithOptions: (NSDictionary *)  launchOptions 
implementation

Definition at line 30 of file AppDelegate.m.

30  :(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
31 
32  self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
33  // Override point for customization after application launch.
34 
35  // [FIRApp configure];
36 
38  UINavigationController *nutrRootNC = [[UINavigationController alloc] initWithRootViewController:nutrRootVC];
39 
40  self.window.rootViewController = nutrRootNC;
41 
42  [self.window makeKeyAndVisible];
43 
44  return YES;
45 }

◆ application:openURL:options:()

- (BOOL) application: (UIApplication *)  app
openURL: (NSURL *)  url
options: (NSDictionary<NSString *, id> *)  options 
implementation

Definition at line 53 of file AppDelegate.m.

53  :(UIApplication *)app
54  openURL:(NSURL *)url
55  options:(NSDictionary<NSString *, id> *)options {
56  return [[GIDSignIn sharedInstance] handleURL:url
57  sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
58  annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
59 }
BOOL handleURL:sourceApplication:annotation:(NSURL *url, [sourceApplication] NSString *sourceApplication, [annotation] id annotation)
GIDSignIn * sharedInstance()

◆ applicationDidBecomeActive:()

- (void) applicationDidBecomeActive: (UIApplication *)  application
implementation

Definition at line 70 of file AppDelegate.m.

70  :(UIApplication *)application {
71  // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
72 }

◆ applicationDidEnterBackground:()

- (void) applicationDidEnterBackground: (UIApplication *)  application
implementation

Definition at line 61 of file AppDelegate.m.

61  :(UIApplication *)application {
62  // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
63  // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
64 }

◆ applicationWillEnterForeground:()

- (void) applicationWillEnterForeground: (UIApplication *)  application
implementation

Definition at line 66 of file AppDelegate.m.

66  :(UIApplication *)application {
67  // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
68 }

◆ applicationWillResignActive:()

- (void) applicationWillResignActive: (UIApplication *)  application
implementation

Definition at line 47 of file AppDelegate.m.

47  :(UIApplication *)application {
48  // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
49  [[[Z5DataController sharedInstance] localDataController] saveContext];
50  // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
51 }
instancetype sharedInstance()
Singleton interface to both core and remote data sources.

◆ applicationWillTerminate:()

- (void) applicationWillTerminate: (UIApplication *)  application
implementation

Definition at line 74 of file AppDelegate.m.

74  :(UIApplication *)application {
75  // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
76 }

Property Documentation

◆ tabBarController

- (UITabBarController*) tabBarController
readwritenonatomicstrong

Definition at line 15 of file AppDelegate.h.

◆ window

- (UIWindow*) window
readwritenonatomicstrong

Definition at line 13 of file AppDelegate.h.


The documentation for this class was generated from the following files: