blob: 31200f5c35965ed44eb1e5aabfd2f71698d8f106 [file] [log] [blame]
{
"name": "GPNavigationController",
"version": "0.1.7",
"summary": "iOS UI基础框架 GPNavigationController.",
"description": "TODO: Add long description of the pod here.",
"homepage": "https://github.com/ziyue92/GPNavigationController",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"ziyue92": "ziyue92@qq.com"
},
"source": {
"git": "https://github.com/ziyue92/GPNavigationController.git",
"tag": "0.1.7"
},
"platforms": {
"ios": "8.0"
},
"source_files": "GPNavigationController/Classes/**/*",
"public_header_files": "GPNavigationController/Classes/**/*.h",
"dependencies": {
"Reachability": [
]
},
"prefix_header_contents": "#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000\n#define LBL_TEXTSIZE(text, font) [text length] > 0 ? [text \\\nsizeWithAttributes:@{NSFontAttributeName: font}] : \\\nCGSizeZero;\n#else\n#define LBL_TEXTSIZE(text, font) [text length] > 0 ? [text sizeWithFont:font] : CGSizeZero;\n#endif\n\n#define GPColor(r, g, b) [UIColor colorWithRed:(r) / 255.0 green:(g) / 255.0 blue:(b) / 255.0 alpha:1.0]\n\n#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width\n#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height\n#define AppWindow [UIApplication sharedApplication].keyWindow\n#define WINDOW [[[UIApplication sharedApplication] delegate] window]\n\n#define isIPhoneXByHeight ([[UIScreen mainScreen] bounds].size.height == 812.f ? 1 :0 )//根据屏幕高度判断\n#define StatusHeight (isIPhoneXByHeight ? 44 : 20)//statusTabbar的高度,iPhone X的高度44\n#define NavHeight (isIPhoneXByHeight ? 88 : 64)//导航栏整体高度\n#define TopSafeAreaHeight (isIPhoneXByHeight ? 44 : 0)//顶部部安全距离高度\n#define BottomSafeAreaHeight (isIPhoneXByHeight ? 34 : 0)//底部安全距离高度\n#define TabbarHeight (isIPhoneXByHeight ? 83 : 49)//Tabbar的高度,iPhone X的高度83"
}