Game Development Reference
In-Depth Information
Time for action - laying down the rules
We'll update the
RootViewController.mm
file.
1. Go to
RootViewController.mm
inside the
ios
folder and look for the
shouldAutorotateToInterfaceOrientation
method. Change the line
inside the method to read:
return UIInterfaceOrientationIsPortrait(
interfaceOrientation );
2. And a few lines below in the
supportedInterfaceOrientations
method,
change the line inside the conditional
to
:
return UIInterfaceOrientationMaskPortrait;