-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