| | |
| | | |
| | | #import <UMMobClick/MobClick.h> //友盟统计 |
| | | #import <UMSocialCore/UMSocialCore.h> //友盟分享 |
| | | #import "UIViewController+Tools.h" |
| | | #import "BSKImagesPageView.h" |
| | | #import "NoNetworkView.h" |
| | | |
| | | //友盟分享 |
| | | #define YMWXKEY @"wx428de66710fac55b" |
| | |
| | | #define iOS10 ([[UIDevice currentDevice].systemVersion doubleValue] >= 10.0) |
| | | // 判断是否为iOS11 |
| | | #define iOS11 ([[UIDevice currentDevice].systemVersion doubleValue] >= 11.0) |
| | | |
| | | #define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue] //系统版本号 |
| | | |
| | | //友盟的appkey |
| | | #define UmengKey @"578ece4167e58e6e6f001e5b" |
| | | |
| | |
| | | #define GDTYSADkey3 @"3050718665039743"//广点通原生广告_搜索 |
| | | #define GDTYSADkey4 @"3080318368662195"//广点通原生广告_播放页 |
| | | #define GDTBannerADkey @"6000418684535350"//广点通banner广告 |
| | | |
| | | #define GDTNomalKey @"1030541617885921"//原生模版广告 |
| | | //优酷 |
| | | #define YKCLIENTId @"758bef946d0050ef" |
| | | #define YKCLIENTSECRET @"e113a131d49e1f837402e2807f2daf58" |
| | |
| | | //点开广告 |
| | | #define DKID @"ddc40fb093e6a57a20e3dd81bbc86f0a" |
| | | #define DKSecret @"d61d579b8a09ca00ad7f1674e332b256" |
| | | #define KIsiPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO) |
| | | |
| | | // 1.获得RGB颜色 |
| | | #define YTHColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1] |
| | | #define SJColor(r, g, b , a ) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:a] |
| | | |
| | | // 2.用代码形式代码 |
| | | #define UIColorFromRGBValue(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] |
| | |
| | | #define kNavigationBarH 64 |
| | | #define kToolBarH 30 |
| | | #define kStatusBarH 20 |
| | | #define IS_IPHONE_X (fabs((double)[[UIScreen mainScreen]bounds].size.height - (double)812) < DBL_EPSILON) |
| | | |
| | | // 5.全局颜色 |
| | | //#define kGlobalMainColor YTHColor(48, 39, 37)//应用的主色调 |
| | |
| | | |
| | | // 6.每张图片前面的前缀 |
| | | #define ImageUrl @"http://sovideo.cn:8080/BuWan" |
| | | |