2011-10-19 79 views

回答

1

使用應用程序的委託方法 -

- (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 inactive state; here you can undo many of the changes made on entering the background. 
    */ 
} 
+0

我需要從我的實際查看控制器... – user1003210

+0

在你** ** applicationWillEnterForeground方法調用它,你需要確定哪些瀏覽器目前佔據屏幕,並刷新它。 (要麼調用reloadData等取決於如何執行刷新。) –

+0

但我怎麼能從appdelegate調用一個視圖控制器??? – user1003210

相關問題