• IOS Application生命周期


    第一阶段
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {    
        NSLog(@"程序启动");
    }
    
    - (void)applicationDidBecomeActive:(UIApplication *)application
    {
        NSLog(@"加载完毕进入主页面");
    }
    
    第二阶段
    - (void)applicationWillResignActive:(UIApplication *)application
    {
        NSLog(@"按下 Home");
    }
    
    - (void)applicationDidEnterBackground:(UIApplication *)application
    {
        NSLog(@"回到桌面");
    }
    
    第三阶段
    - (void)applicationWillEnterForeground:(UIApplication *)application
    {    
        NSLog(@"点击桌面图标回到程序");
    }
    
    - (void)applicationDidBecomeActive:(UIApplication *)application
    {
        NSLog(@"加载完毕进入主页面");
    }
  • 相关阅读:
    【SpringBoot】SpringBoot中请求路径问题
    CodeForces
    CodeForces
    7-36 旅游规划 (25 分(Dijkstra)
    CodeForces
    CodeForces
    CodeForces
    CodeForces
    CodeForces
    CodeForces
  • 原文地址:https://www.cnblogs.com/joesen/p/3557634.html
Copyright © 2020-2023  润新知