Cocos2d-iphone 2.0 set AutoRotate for landscape,but the view position is wrong when first loaded -


the app set landscape.

in project->target->summary->supported interface orientations, enabled 2 landscape icons (both left , right).

and in appdelegate.m, below code written:

- (bool)shouldautorotatetointerfaceorientation: (uiinterfaceorientation)interfaceorientation {       return uiinterfaceorientationislandscape(interfaceorientation); } 

when app running on device, view showed @ beginning after default cocos2d icon, positions wrong moved right-down side. when rotate screen, goes right, in right position.

what's wrong?

i tried method below: disable icons in in project->target->summary->supported interface orientations. code in appdelegate still in use. view @ beginning ok screen can rotated protrait.

....

any 1 can help?

also put these 2 ios6 orientation, in appdelegate.

-(nsuinteger)supportedinterfaceorientations {      return uiinterfaceorientationmasklandscape; }  - (nsuinteger)application:(uiapplication*)application supportedinterfaceorientationsforwindow:(uiwindow*)window {     return uiinterfaceorientationmasklandscape; } 

look @ question , answer once.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -