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
Post a Comment