-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.
*/
}
我需要从我的实际查看控制器... – user1003210
在你** ** applicationWillEnterForeground方法调用它,你需要确定哪些浏览器目前占据屏幕,并刷新它。 (要么调用reloadData等取决于如何执行刷新。) –
但我怎么能从appdelegate调用一个视图控制器??? – user1003210