判断iphone手机的宏定义

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/fanhenghui/article/details/50964544
#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

展开阅读全文

没有更多推荐了,返回首页