Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sakthivadivel.a

macrumors newbie
Original poster
Oct 31, 2011
13
0
chennai - -India
Hi All,

My application having sequence of screens, up to four screen continuously, for any reason if i press home button of my iPhone, the application closes and when i am opening the application it resumes the same screen where it closed.

I don't want that, i want to open the home screen everytime when user open the application. where to change in my appDelegate.m file.

How to do that, can anyone help me in this regard.


sakthi.....
 
This is a programming question, I'm not sure it belongs in this iPhone forum thread. Anyway you need to implement the applicationDidEnterbackground method and run whatever you want in there. You could make the app terminate in this method which would cause I to restart every time. But really i dont recommend it unless really necessary
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.