检测iphone 5 4“屏幕 [英] Detect iphone 5 4" screen
本文介绍了检测iphone 5 4“屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
如何检测iPhone 5(宽屏设备)?
我有没有办法检测当前设备是否是iphone 5?更具体地说,如果它使用新的4屏幕?
Is there a way I can detect if the current device is the iphone 5? More specifically if it's using the new 4" screen?
推荐答案
使用此
#define IS_IPHONE5 (([[UIScreen mainScreen] bounds].size.height-568)?NO:YES)
这篇关于检测iphone 5 4“屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文