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

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.

主站蜘蛛池模板: 龙口市| 柘城县| 浦江县| 崇礼县| 杭锦后旗| 江安县| 肥西县| 长子县| 合水县| 遵化市| 乌鲁木齐县| 宁阳县| 襄城县| 郯城县| 朝阳区| 丘北县| 潮州市| 佳木斯市| 莒南县| 宜川县| 茌平县| 习水县| 乌拉特前旗| 墨玉县| 莒南县| 常山县| 沐川县| 泾源县| 山阴县| 柘荣县| 高青县| 永修县| 延津县| 红安县| 揭阳市| 绥江县| 平乐县| 焦作市| 福安市| 平湖市| 内江市|