views:

16

answers:

1

I have a cocos2d game, and after I exit the game and start it again, it starts at the exact same point it was before closing.why this is happening??and not only this, my game is landscapemode but when i start it again from simulator it comes in potrait mode,not it landscapemode like first time.

Is there any way to prevent this?

Anyone will come to rescue me???

A: 
What option should i add in my info.plis??And how to do it??will you please explain.I found my DidApplicationfinishlaunching not called when i restart the game and thats why the game state not changed.And i also found when i press the back button in simulator applicationWillResignActive function is called.So i set a exception (like division by zero) here so that when i press it the application crash and if i restart it now from simulator it comes from initial state which i want.But i know its not a good solution.So will you explain me how do it correctly.
russell