home Button and Lock Button Event Handling in iPhone development

when you are developing game or app in ios, you should handle these events ,users may press HOME button or LOCK button ,or your application may get interrupted during call ,SMS . Now i hope that you understand the reason why we should handle that ,for this problem apple has some delegate functions in app delegate
-applicationDidEnterBackground;
               this method invokes when application enters background(HOME button pressed).
 
-applicationDidBecomeActive;
              this method invokes when application become active and about to start running your app.
 
-applicationWillResignActive;
              this method invokes when application resigns active.
 
-applicationEnteredForeground;
             this method invokes when your app comes to foreground.
 
these methods are life cycle codes in iphone development.
expecting your feedback.Thank you

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *