IVTMeLiveTwo-Prefix.pch
2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
//
// IVTMeLiveTwo-Prefix.pch
// IVTMeLiveTwo
//
// Created by XRG on 16/8/10.
// Copyright © 2016年 QLQ. All rights reserved.
//
#ifndef IVTMeLiveTwo_Prefix_pch
#define IVTMeLiveTwo_Prefix_pch
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
#endif /* IVTMeLiveTwo_Prefix_pch */
#import "Masonry.h"
#import "SVProgressHUD.h"
#import "MJRefresh.h"
#import "MJRefresh.h"
#import "UIColor+IVTMeColor.h"
#import "UIFont+IVTMeFont.h"
#import "IVTThirdFuncTool.h"
#import "IVTMeValidObject.h"
#import "IVTNetworkAPIClient.h"
#import "UIImageView+WebCache.h"
#import "NSString+base64.h"
#import "UIImage+CreateFromUIColor.h"
#import "XMPPManager.h"
#import "UIButton+WebCache.h"
#import "UIImage+IVTCircleCategory.h"
#import "IVTAccountTool.h"
#import "HUDUtil.h"
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define UIColorFromRGBAlphaHex(rgbValue,aValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:aValue]
#define kVersion [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
//分享设置
#define kWX_AppID @"wx25baeb3cd821bac2"//微信
#define kWX_AppSecret @"9fcb3ea4a0be054f924dd1ea506a0d0d"
#define kQQ_AppID @"1105467244"//qq
#define kQQ_AppKey @"xiJ7fsMcHTAbA1el"//qq
//3479947879
//a99e53a9518d5218c9b2710c072b625e
// http://sns.whalecloud.com
#define kSina_AppKey @"3479947879"//新浪微博
#define kSina_RedirectURI @"http://sns.whalecloud.com"//
#define kSina_AppSecret @"a99e53a9518d5218c9b2710c072b625e"//新浪微博
//极光推送
#define kJPush_AppKey @"cb4aadbdfb81826a89047232"//极光推送
#define kCNLive_AppID @"118_itdr6ijv09"//中国网AppID
#define kCNLive_AppKey @"24557a1060598e010749ec11b43ac9d62e8a765d3463cf"//中国网AppKey
//是否显示过引导页
#define kIsShowedGuideLaunchedView @"kIsShowedGuideLaunchedView"
/**
* 弱/强引用
*
* @param type weak/strong
*
* @return weakSelf/strongSelf
*/
#define LRWeakSelf(type) __weak typeof(type) weak##type = type;
#define LRStrongSelf(type) __strong typeof(type) type = weak##type;
#if 0 /*0是测试环境 1是线上环境 */
#define kBaseURL @"http://api.me.cnlive.com/"//正式版基础地址
#define kXMPPBaseURL @"xmpp.me.cnlive.com"//正式版基础地址
#else
#define kBaseURL @"http://me.demo.bjivt.com/api/"//测试版基础地址
//#define kBaseURL @"http://192.168.1.51:8080/api"//测试版基础地址
#define kXMPPBaseURL @"me.demo.bjivt.com"//测试版基础地址
#endif
#ifdef DEBUG
#define LRLog(...) NSLog(@"%s 第%d行 \n %@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])
#else
#define LRLog(...)
#endif