ios - How to set device (UI) orientation programmatically? -


would on screen (ui) able rotate landscape left right or vica versa.

how go doing this? private?

i know

-(bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation {} 

lets orientations ui can be, there way force 1 @ time?

cheers

that method called determine whether interface should automatically rotate given rotation (i.e letting uikit hard work, rather doing manually).

so if wanted app work in landscape you'd implement body of method with:

return uiinterfaceorientationislandscape(interfaceorientation);

if wanted ui auto rotate orientations return yes;

is asking?


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -