iphone6 plus获取设备宽高没有变
升级XCode6后使用Iphone6 plus模拟器得到设备宽高没有变化。是不是不需要适配了,太好了。
也许苹果用了放大的技术。
NSLog(@"width = %f ,height = %f",[UIScreen mainScreen].bounds.size.width,[UIScreen mainScreen].bounds.size.height);
iphone6 plus
2014-09-19 11:31:05.104 [44129:1805856] width = 320.000000 ,height = 568.000000
iphone6
2014-09-19 11:31:36.958 [44182:1806632] width = 320.000000 ,height = 568.000000
iphone5s
2014-09-19 11:31:58.937 [44240:1807318] width = 320.000000 ,height = 568.000000
iphone4s
2014-09-19 11:32:26.919 [44297:1808038] width = 320.000000 ,height = 480.000000