I have a cocos2d game, and after I exit the game and start it again, it start开发者_JS百科s 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???
From iOS 4.0, there are new options for "info.plist" file.
If you do not want to add multi-tasking(running in background), just add it.
You can add the option by just clicking and checking in your game project's "info.plist".
And rotation setting is on your "RootViewController.m" file.
You can change your app direction by just changing return value.
I hope your game will work well.
精彩评论