objective c - iPad App Landscape Mode broken iOS 8.3 -


i have app ipad , app landscape right , left orientation..like printscreen:

the app landscape orientation

and i'm using following code rotate view landscape mode:

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     [[uiapplication sharedapplication] setstatusbarorientation:uiinterfaceorientationlandscaperight];  cgaffinetransform rotate = cgaffinetransformmakerotation(m_pi/2);     [self.window settransform:rotate];     [self.window setframe:cgrectmake(0, 0, 768, 1024)]; } 

and xib:

the xib

it worked fine..but in ios 8.3 doesn't work. appears wrong...see image:

enter image description here

set auto layout constraints viewcontroller objects. , no need write code in didfinishlaunchingwithoptions

[[uiapplication sharedapplication]setstatusbarorientation:uiinterfaceorientationlandscaperight];  cgaffinetransform rotate = cgaffinetransformmakerotation(m_pi/2);  [self.window settransform:rotate];  [self.window setframe:cgrectmake(0, 0, 768, 1024)]; 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -