官术网_书友最值得收藏!

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;

What just happened?

We just told RootViewController we want our application to play in any of the two supported portrait modes.

主站蜘蛛池模板: 合水县| 新晃| 喜德县| 湖北省| 安溪县| 乐安县| 古蔺县| 镶黄旗| 承德市| 策勒县| 南陵县| 诸暨市| 四平市| 苗栗市| 普格县| 武城县| 东阿县| 资源县| 织金县| 松溪县| 山阴县| 宁强县| 招远市| 五大连池市| 桂东县| 思南县| 邛崃市| 衡山县| 张北县| 普定县| 赫章县| 日土县| 开原市| 五原县| 金塔县| 自治县| 印江| 安多县| 中阳县| 满洲里市| 康保县|