<分区>
<分区>
- (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
.
这是一个错误吗?
最佳答案
没有。您的应用程序还没有真正再次激活,对吗?当您查看任务切换器 View 时,没有任何应用程序处于事件状态。
关于iphone - 这是ios的bug吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16025234/