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

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.

主站蜘蛛池模板: 商南县| 土默特左旗| 乐业县| 宽城| 新津县| 镇远县| 林周县| 同江市| 南召县| 葵青区| 丹江口市| 隆昌县| 新田县| 泸水县| 武隆县| 尤溪县| 稷山县| 丹凤县| 丰宁| 临朐县| 民勤县| 延庆县| 江阴市| 增城市| 普格县| 顺平县| 东安县| 陈巴尔虎旗| 弥渡县| 万山特区| 秦安县| 屯留县| 凤山县| 大洼县| 新平| 嫩江县| 武宣县| 重庆市| 绍兴市| 承德县| 丰原市|