//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
/**
.pch 文件的作用:
1> 定义一些全局的宏、所有文件共用。
2> 包含头文件、所有文件共用
3> 自定义日志、所有文件共用
只要是在 .pch 里面定义的东西、所有文件共用。
*/
#import <Availability.h>
#ifndef __IPHONE_3_0
#warning "This project uses features only available in iOS SDK 3.0 and later."
#endif
#ifdef __OBJC__ // __OBJC__ 是系统自带的宏、下面定义的东西只能在 OC 中使用
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
// 自己的
#import "UIImage+JF.h"
// 1> 判断是否为 iOS7 、 这里的小括号要不要都行
#define iOS7 ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0)
// 2> 获得 RGB 颜色
#define JFColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
/*
3> 自定义log:
1. DEBUG 是系统自带的宏、系统会自动识别、
如果程序运行在模拟器中就会提前定义一个 DEBUG 宏、当打包发布时、系统会自动删除该宏。
2. ... 可变参数、表示可以传任意参数。
3. __VA_ARGS__ : 系统规定的写法、也是可变参数的意思。 VA 变量、ARGS 参数
4. #define JFLog(...) [替换成空]
类似于 #define JFLog(...) // NSLog(__VA_ARGS__) [注释掉]
*/
#ifdef DEBUG // 开发
#define JFLog(...) NSLog(__VA_ARGS__)
#else // 发布
#define JFLog(...)
#endif
#endif
/**
* 下面定义的宏、在C、OC中都可以使用
*/
// #define testHong