开发者

Discovering if a component is being displayed (of if it's in background), is it possible?

I need to run a method everytime the user switch the screen or return to the application (after a call, or pressing the "Home Button" and returning to the app, for example).

Is there any way to recognize this, like an event or method that is always executed when this happens?

开发者_如何学JAVAThank you guys in advance.


Implement those 2 methods in the UIApplicationDelegate :

- (void)applicationDidEnterBackground:(UIApplication *)application

- (void)applicationWillEnterForeground:(UIApplication *)application
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜