ios - Understanding iOS6 autorotation in more depth -


i have read multiple qas on topic , read documentation, confirmation on answers.


- (bool)shouldautorotate  

this method determines if vc allowed autorotate?


-(nsuinteger)supportedinterfaceorientations 

this method determines orientations specific view controller accepts, able rotate too...


- (uiinterfaceorientation)preferredinterfaceorientationforpresentation  

this method determines preferred orientation for. however, not called on vc on navigation controller. if wish use should subclass uinavigationcontroller.


is correct?

what trying have 1 specific controller auto rotate landscape if image passed in orientation. can image orientation without issue. have set shouldautorotate yes on vc, , supportedinterfaceorientations set all. not rotate.

this uinavigationcontroller modally presents uinavigationcontroller on top of , specific controller 6th in stack.

how control preferred orientation vc within uinavigationcontroller determined value view controller? orientation not same.

be careful don't have orientation lock on device whilst testing!!! opps


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -