Appdelegate Or Gameviewcontroller?

Discussion in 'Technical Discussion' started by itzonator, May 25, 2019.

  1. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    Hey boxers,

    I am trying to figure out which one function loads first at the very beginning of the iOS game load?

    In AppDelegate.mm -> didFinishLaunchingWithOptions
    OR
    In GameViewController -> viewDidLoad

    Which one gets called first and which one is the second? I need to set some code at the very beginning before initializing any SDKs so I'd like to know which one loads first? Any ideas?

    Thanks,
    Itzo
     
  2. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    i think AppDelegate.mm file this one is first:

    - (void)applicationDidBecomeActive:(UIApplication *)application {
     
    itzonator likes this.

Share This Page