判断iphone手机的宏定义
2016-03-23 16:44
274 查看
#ifndef PACS_define_h
#define PACS_define_h
#define FIRST_TIME @"firstTime"
#define ISLOGGED_IN @"isloggedin"
#define DicomRowCount 3
#define IS_IPHONE_4 (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)480) < DBL_EPSILON)
#define IS_IPHONE_5 (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)568) < DBL_EPSILON)
#define IS_IPHONE_6 (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)667) < DBL_EPSILON)
#define IS_IPHONE_6_PLUS (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)736) < DBL_EPSILON)
#define ANY_DATE @"Any Date"
#define TODAY @"Today"
#define THIS_WEEK @"This Week"
#define THIS_MONTH @"This Month"
#define THIS_YEAR @"This Year"
#define CUSTOM @"Custom"
#endif
#define PACS_define_h
#define FIRST_TIME @"firstTime"
#define ISLOGGED_IN @"isloggedin"
#define DicomRowCount 3
#define IS_IPHONE_4 (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)480) < DBL_EPSILON)
#define IS_IPHONE_5 (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)568) < DBL_EPSILON)
#define IS_IPHONE_6 (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)667) < DBL_EPSILON)
#define IS_IPHONE_6_PLUS (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)736) < DBL_EPSILON)
#define ANY_DATE @"Any Date"
#define TODAY @"Today"
#define THIS_WEEK @"This Week"
#define THIS_MONTH @"This Month"
#define THIS_YEAR @"This Year"
#define CUSTOM @"Custom"
#endif
相关文章推荐
- Shrio入门1:基础理论需求
- Android学习笔记(29):搜索框SearchView
- Keepalived+MySQL主主互备模式实现高可用
- vi显示行号的一点小技巧
- angular中的Controller使用注意点
- PHP输出Excel两种方法
- android进阶之旅,初级试水型探索(activity四种启动模式详解)
- consul系列一之基础
- Shell编程(八)---输入输出重定向、文件包含
- 简单拉普拉斯网格变形-Siggraph 2004
- 【原创】k8s源码分析------kube-apiserver分析(3)
- MiniProfiler 兼容 Entity Framework 6
- Android学习笔记(28):三种选择器DatePicker_TimePicker_NumberPicker
- Android 三大图片缓存原理、特性对比
- ListView相关属性
- windows 线程封装
- jQuery Easing 使用方法及其图解
- 购物抛物线
- Web前端开发与PHP设计
- ReactNative更换JSContext增加注入方法