my game should use landscape ,but after i set pinfo.list ,supported device orientations in Summary, override shouldautorotationtointerfaceorientation method , rotation simulator using HARDWARE "rotation left". nothing happened.
I search ,maybe something related CGAffineTransformMakeRotation.
Did i miss somethings ?
Thanks in advance.
ios uiinterfaceorientation problem
-
zhengxianfu
- Posts: 16
- Joined: Thu Apr 05, 2012 9:33 am
Re: ios uiinterfaceorientation problem
maybe this is one of approach:
http://www.rtsoft.com/forums/archive/in ... -5706.html
Here is problem:
1、all touch method, must translate the position ,because of glrotate
2、the size seems to be 320*320 ,that means ,only 320 of 480 bits display at screen,rest of screen is white.
ANY ideas?
http://www.rtsoft.com/forums/archive/in ... -5706.html
Code: Select all
glRotatef( 90, 0.0f, 0.0f, 1.0f );
glTranslatef( 0.0f, -320.0f, 0.0f ); // the rotation takes it offscreen and this brings it back on so the origin is in the right place
Here is problem:
1、all touch method, must translate the position ,because of glrotate
2、the size seems to be 320*320 ,that means ,only 320 of 480 bits display at screen,rest of screen is white.
ANY ideas?