2012-12-25 49 views
3

我正在运行同步过程,在此过程中我将文件从服务器下载到iPad中。当我运行在iOS6的过程中,UI看起来是这样的:enter image description here关闭并重新打开iOS6中的应用程序时出现UI问题

然而,这一进程正在运行时,我关闭应用程序,并返回到主屏幕,当我重新启动应用程序,它看起来像这样: enter image description here

屏幕黑了...

与此同时,当我运行这个在iOS5中,它完美的罚款。但问题是当我在iOS6中运行它时。

有时,运行正常返回我的红色背景壁纸的时候,它会返回黑屏......被这个问题逗乐了全...

可能是什么原因?

编辑:

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

- (void)applicationDidEnterBackground:(UIApplication *)application 
{ 
    /* 
    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. 
    If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 
    */ 
} 

- (void)applicationWillEnterForeground:(UIApplication *)application 
{ 
    /* 
    Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 
    */ 
} 

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

} 

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

请显示如何配置背景的代码。 –

+0

关闭应用程序是什么意思,你把它发送到背景,或者你在主屏幕上杀死它?请显示您的应用程序委托的一些代码以及您构建背景的方式。 – Norbert

+0

我没有杀死应用程序..只是关闭并再次打开应用程序... – lakesh

回答

0

当应用程序在云OS的背景可以减少内存使用你的应用程序,让背景图可以被释放。每次使用viewWillApperar方法加载视图时,请尝试重新加载背景。

相关问题