iOS 判断iphone ipad 系统版本
来源:互联网 发布:网站域名后缀 编辑:程序博客网 时间:2024/05/01 00:45
最常用的方法是<pre name="code" class="objc"><pre name="code" class="objc">[[[UIDevice currentDevice] systemVersion] floatValue];
#define ScreenWidth ([[UIScreen mainScreen] bounds].size.width)#define ScreenHeight ([[UIScreen mainScreen] bounds].size.height) #define iOS8 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)#define iOS7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0)#define iOS6 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) #define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? YES : NO)#define isPhone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ? YES : NO)#define isRetina ([[UIScreen mainScreen] scale] > 1 ? YES : NO)
0 0
- iOS 判断iphone ipad 系统版本
- iOS 判断iphone ipad 系统版本
- iOS 判断iphone ipad 系统版本
- iOS判断是ipad还是iphone
- ios判断设备是iphone还是ipad
- ios 判断iPhone、iPad硬件型号
- iOS 判断设备为iPhone还是iPad
- iOS判断是ipad还是iphone
- ios 判断是iphone还是ipad
- iPhone/iPad安装Beta版本的iOS系统以后,不能与iTunes同步的解决方案
- @media媒体查询判断ipad和iPhone各版本
- 媒体查询判断ipad和iPhone各版本
- Iphone和Ipad判断
- 判断 iOS 系统版本
- 判断ios系统版本
- ios判断系统版本
- iOS 判断系统版本
- iOS系统版本判断
- AtomicReference 原子引用
- python __init__.py
- C/CPP点滴积累—数组做函数参数退化为指针
- 每个Xcode开发者应该知道的七个使用技巧
- 关于MD5文件的校验
- iOS 判断iphone ipad 系统版本
- 正则化方法L1和L2
- 别人的故事
- Gitlab上如何给指定人员在指定项目里设置指定权限,给项目设置保护
- GCD在子线程中更新UI出错记录
- Hudson-ci/Using Hudson/Installing Hudson/Installing Hudson DEB
- 校门外的树
- java mysql 中文查询
- iOS开发---计算两个日期的时间差