2011-10-19 81 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

相关问题