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

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.

主站蜘蛛池模板: 思南县| 汉阴县| 子洲县| 九江市| 元阳县| 章丘市| 胶州市| 平乐县| 泸定县| 巴彦县| 合山市| 广丰县| 定安县| 永安市| 莎车县| 淄博市| 焉耆| 永康市| 洛扎县| 墨竹工卡县| 军事| 梨树县| 通江县| 明水县| 崇文区| 云和县| 北流市| 秦皇岛市| 宕昌县| 靖宇县| 沽源县| 永新县| 嘉禾县| 南郑县| 大港区| 怀来县| 呼玛县| 寿宁县| 遂昌县| 酉阳| 健康|