从跳板返回应用程序时调用的方法 [英] Method invoked when app is brought back from springboard

查看:52
本文介绍了从跳板返回应用程序时调用的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以下行为:

用户只要轻按主屏幕按钮,即可将我的应用保留在应用内设置"视图中.然后,他/她在iPhone设置视图中进行了一些更改,然后再次打开我的应用程序.为了在应用内设置"视图中更新用户界面,我需要添加哪种代码?

An user leaves my app in the "in-app-setting" view with a tap on home-button. Then he/she does some changes in the iphone setting view and open my app again. Which method do I need to add my code in order to update the UI in the "in-app-setting" view?

预先感谢

推荐答案

将简历代码放入应用程序委托.m文件的- (void) applicationDidBecomeActive:(UIApplication *)application- (void)applicationWillEnterForeground:(UIApplication *)application函数中.当用户单击主页按钮后,当您的应用程序再次启动时,该函数将被调用

put your resume code in the - (void) applicationDidBecomeActive:(UIApplication *)application or - (void)applicationWillEnterForeground:(UIApplication *)application function in your app delegate .m file. when your application starts up again after the user hits the home button, this function will be called

apple的文档详细说明了用于某些任务的功能:

apple's documentation explains in more detail as to which function to use for certain tasks:

http://developer.apple .com/library/ios/#documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html

这篇关于从跳板返回应用程序时调用的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆