iphone - UIInterfaceOrientation within UINavigationController -
i control device reorientation effect on 2 different uiviewcontrollers pushed onto uinavigationcontroller.
on first view, setting app rotate portait only, seems doing on views.
this code:
- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation { return uiinterfaceorientationisportrait(interfaceorientation); } and, on view using following code:
- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation { // overriden allow orientation. return yes; } on second view rotate orientations, on first want rotation restricted portrait only.
thanks!
Comments
Post a Comment