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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -