
似乎VIEwController中的方法shouldautorotatetoInterfaceOrIEntation是决定是否支持给定方向的关键.那么,如果不限制方向,为什么还要在应用程序级别中设置“支持设备方向”?
解决方法 这是 documentation for UISupportedInterfaceOrientations property的引用:UISupportedInterfaceOrIEntations (Array – iOS) specifIEs the interface orIEntations your application supports. The system uses this information (along with the current device orIEntation) to choose the initial orIEntation in which to launch your application. The value for this key is an array of strings.
例如.此属性确定您的应用程序可能启动的可能方向(它实际上最常用于iPad).后面的方向更改取决于VIEwControllers.
总结以上是内存溢出为你收集整理的iOS应用程序设置中“支持的设备方向”有什么意义?全部内容,希望文章能够帮你解决iOS应用程序设置中“支持的设备方向”有什么意义?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)