<分区>
Possible Duplicate:
How to tell when controller has resumed from background?
如何在用户进入applicationWillEnterForeground后刷新View?
我想完成召回,例如 HomeViewController。
我在 HomeViewController 中有更新功能,我想在用户输入时调用更新功能并重新加载表数据。
<分区>
Possible Duplicate:
How to tell when controller has resumed from background?
如何在用户进入applicationWillEnterForeground后刷新View?
我想完成召回,例如 HomeViewController。
我在 HomeViewController 中有更新功能,我想在用户输入时调用更新功能并重新加载表数据。
最佳答案
任何类都可以注册到 UIApplicationWillEnterForegroundNotification
,并做出相应的 react 。它不保留给应用委托(delegate),有助于更好地分离源代码。
关于ios - 进入applicationWillEnterForeground后如何刷新View?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13309784/
相关文章:
ios - 在 Swift iOS 中执行 segue 时出错
objective-c - 从 ViewController 访问 drawRect?
ios - 防止 IOS Objective-C 中手动截图
ios - 添加 SKPhysicsJointLimit 后 SKPhysicsBodies 不会发生碰撞
ios - 使用prepareForReuse函数从UITableCell类内的ViewController重置var
ios - 呈现另一个 UIViewController 后关闭 UIViewController
ios - 在选项卡式 View Controller 之间在 Swift 中传递简单的变量数据(更新标签)
iphone - iOS:如何识别我们从父 UIViewController 中的子 UIViewController 返回?