I have an UIViewController, I want to disable or enable rotation of the screen in different scenarios
Example:
if flag { rotateDevice = false } e
set device orientarion portrait in Target -> General -> Deployment Info -> Portrait