iphone - iOS Enable Rotation for all Orientations iOS 5 -
i've written tabbed application few view controllers, , on ios 6 rotates happily in orientations i've got them supported in app summary.
my deployment target ios 5 , i'd able rotate in orientations on too. i've tried varies combinations of:
- (nsuinteger)supportedinterfaceorientations { homecoming uiinterfaceorientationportrait | uiinterfaceorientationlandscape; }
but none enabling rotation ios 5. need set method in app delegate or in view controllers? doing totally wrong??
cheers,
chris
you can add together view controllers
-(bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation { homecoming (interfaceorientation == uiinterfaceorientationportrait) || (interfaceorientation == uiinterfaceorientationlandscape); }
or can edit plist's supported interface orientations
iphone ios objective-c xcode ipad
No comments:
Post a Comment