How to force a UIViewController to Portrait orientation in iOS 6

后端 未结 16 1311
别那么骄傲
别那么骄傲 2020-11-22 06:03

As the ShouldAutorotateToInterfaceOrientation is deprecated in iOS 6 and I used that to force a particular view to portrait only, what is the c

16条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 06:42

    Just go to project.plist then add Supported interface orientation and then add only Portrait (bottom home button) and Portrait (top home button).

    You can add or remove there orientation as per your project requirement .

    Thanks

提交回复
热议问题