这是ios中的一个错误吗?

时间:2013-04-15 21:46:44

标签: iphone ios ios5 ios6

- (void)applicationWillResignActive:(UIApplication *)application
    {
        NSLog(@"resign active");
    }

    - (void)applicationDidEnterBackground:(UIApplication *)application
    {
        NSLog(@"background");  
    }

    - (void)applicationWillEnterForeground:(UIApplication *)application
    {
        // 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.
    }

    - (void)applicationDidBecomeActive:(UIApplication *)application
    {
        NSLog(@"Active");
    }

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

当我用四根手指向左滑动(不要完全更改应用程序)时,我可以看到日志resign active,然后将四根手指向右移动Active

如果我用四根手指轻扫顶部,我可以看到resign active。之后,如果我用四根手指向右滑动(实际上没有关闭你看到所有正在运行的应用程序的下栏),我就看不到active

这是一个错误吗?

1 个答案:

答案 0 :(得分:1)

不。你的应用程序还没有真正变得活跃,对吧?当您查看任务切换器视图时,没有应用程序处于活动状态。