Demo-Prefix.pch 1.6 KB
Newer Older
Han Ruisong's avatar
Han Ruisong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#import <Availability.h>

#ifndef __IPHONE_3_0
#warning "This project uses features only available in iOS SDK 3.0 and later."
#endif


#if DEBUG

#define NSLog(format, ...) NSLog(@"%s():%d "format, __func__, __LINE__, ##__VA_ARGS__)

#else

#define NSLog(format, ...)

#endif


#define IsIOS7 ([[[[UIDevice currentDevice] systemVersion] substringToIndex:1] intValue]>=7)

Han Ruisong's avatar
Han Ruisong committed
21
22
#define  IS_PAD  (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

Han Ruisong's avatar
Han Ruisong committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#define ScreenWidth  [UIScreen mainScreen].bounds.size.width
#define ScreenHeight  [UIScreen mainScreen].bounds.size.height

#define ScaleHeight(s,scale)   ((CGFloat)((s) / (scale)))

#define TitleColor_51        ([UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0])
#define TitleColor_102        ([UIColor colorWithRed:102/255.0 green:102/255.0 blue:102/255.0 alpha:1.0])

#define TitleFont(fontSize)   ([UIFont fontWithName:@"PingFangSC-Regular" size:(fontSize)])

//弱引用
#define WeakSelf(type)  __weak typeof(type) weak##type = type

//强引用
#define StrongSelf(type)  __strong typeof(type) type = weak##type

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif

#import "DWAppDelegate.h"
#define DWAPPDELEGATE ((DWAppDelegate*)([[UIApplication sharedApplication] delegate]))

Han Ruisong's avatar
Han Ruisong committed
47
48
#define DWVODPLAYERRESUMEEVENTNOTIFICATION    @"DWVodPlayerResumeventNotification"

Han Ruisong's avatar
Han Ruisong committed
49
50
51
52
53
54
55
56
57
#import "Masonry.h"
#import "DWTools.h"
#import "DWSDK.h"
#import "SDInternalMacros.h"
#import "MBProgressHUD.h"
#import "ObjectExtension.h"
#import "DWVodModel.h"
#import "DWConfigurationManager.h"
#import "UIImageView+WebCache.h"
Han Ruisong's avatar
Han Ruisong committed
58

Han Ruisong's avatar
Han Ruisong committed
59
60
#import <HDBaseUtils/HDBaseUtils.h>