[[UIScreen mainScreen]界限]返回值是否响应方向? [英] Does [[UIScreen mainScreen] bounds] return values respond to orientations?
本文介绍了[[UIScreen mainScreen]界限]返回值是否响应方向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以基本上我的问题是。边界CGRect是否随屏幕方向而变化或是否为静态?
So basically my question that. Does the bounds CGRect change with the screen orientation or is it static?
谢谢!
推荐答案
刚刚在iPhone模拟器上测试过 - 它总是为所有方向返回相同的值
Just tested that on iPhone simulator - it always returns the same value for all orientations
{{0,0} ,{320,480}}
{{0, 0}, {320, 480}}
这篇关于[[UIScreen mainScreen]界限]返回值是否响应方向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文