// // HKPTimeLine 仿赤兔、微博动态.pch // HKPTimeLine 仿赤兔、微博动态 // // Created by samuelandkevin on 16/9/19. // Copyright © 2016年 HKP. All rights reserved. // #ifndef HKPTimeLine_pch #define HKPTimeLine_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. //#import //#import #define RGB16(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 RGB16(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 kGrayColor RGBCOLOR(196, 197, 198) //#define kGreenColor RGBCOLOR(0, 201, 144) //#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1] #define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width #define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height #define KEYWINDOW [UIApplication sharedApplication].keyWindow #define DDLog(FORMAT, ...) fprintf(stderr, "\n[%s] function:%s line:%d content:%s\n", __TIME__, __FUNCTION__, __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]); #define WeakSelf __weak __typeof(&*self)weakSelf = self; #define KRecordingEnd @"RecordingEnd" //发送通知 #define KPostNotification(name,obj) [[NSNotificationCenter defaultCenter] postNotificationName:name object:obj]; #endif /* HKPTimeLine_pch */