ios - Rotate UIViewController Programmatically? -
i trying rotate uiviewcontroller 180 degrees programmatically. let's nail "rotate" button. said button should rotate screen , it's content 180 degrees. ios target has portrait supported interface orientation under deployment info. issue?
thanks!
you can rotate uiview
(not controller) assigning rotation transformation calayer
's transform
property.
however, remember, orientation remain in portrait, , status bar not rotate view.
there no public api setting device's ui orientation. if not care public api , appstore compliance, there [[uidevice currentdevice] setorientation:uiinterfaceorientationportrait];
ios objective-c uiviewcontroller rotation autorotate
No comments:
Post a Comment