//
// ZZ_APP主流框架-Prefix.pch
// ZZ_APP主流框架
//
// Created by ZZ_Macpro on 15/9/25.
// Copyright (c) 2015年 ZZ_Macpro. All rights reserved.
//
#import <Availability.h>
#ifndef __IPHONE_7_0
#warning "This project uses features only available in iOS SDK 8.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "UIImage+ZZ.h"
#import "NSString+ZZ.h"
#endif
#ifndef ZZ_APP_____ZZ_APP_____Prefix_pch
#define ZZ_APP_____ZZ_APP_____Prefix_pch
// 1.判断是否为iOS7
#define iOS7 ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0)
// 2.获得RGB颜色
#define ZZColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
// 3.全局背景色
#define ZZGlobalBg ZZColor(232, 233, 232)
// 4.自定义Log
#ifdef DEBUG
#define ZZLog(...) NSLog(__VA_ARGS__)
#else
#define ZZLog(...)
#endif
// 5.颜色、字体常量
/** 导航栏 */
// 导航栏标题颜色
#define ZZNavigationBarTitleColor ZZColor(65, 65, 65)
// 导航栏标题字体
#define ZZNavigationBarTitleFont [UIFont boldSystemFontOfSize:19]
// 导航栏按钮文字颜色
#define ZZBarButtonTitleColor (iOS7 ? ZZColor(239, 113, 0) : ZZColor(119, 119, 119))
#define ZZBarButtonTitleDisabledColor ZZColor(208, 208, 208)
// 导航栏按钮文字字体
#define ZZBarButtonTitleFont (iOS7 ? [UIFont systemFontOfSize:15] : [UIFont boldSystemFontOfSize:12])
// 6.数据存储
#define ZZUserDefaults [NSUserDefaults standardUserDefaults]
// 7.常用对象
#define ZZNotificationCenter [NSNotificationCenter defaultCenter]
// tableView 常用尺寸
#define ZZTableBorderW 6
#define ZZCellMargin 6
#endif