i ma having view xib in landscape mode.in 1 view controller want show view in landscape mode , working f9.in view controller on button click want view come in portrait bottom top need transform landscape view portrait view .i have done shouldauto rotate methodbut not work.i have attached screenshot question more understood
the landscape view coming . please me in sort outing problem in advance!!
write following code in view did load method
[[uiapplication sharedapplication] setstatusbarorientation:uiinterfaceorientationlandscaperight animated:no]; [[self view] setbounds:cgrectmake(0, 0, 480, 320)]; [[self view] setcenter:cgpointmake(160, 240)]; [[self view] settransform:cgaffinetransformmakerotation(m_pi / 2)];
also in xib set view frame 480 x 320 in place of 320 x 480 . otherwise not work can rotate view in xib.
Comments
Post a Comment