objective c - iPad App Landscape Mode broken iOS 8.3 -
i have app ipad , app landscape right , left orientation..like printscreen:

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:

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

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
Post a Comment