iOS开发-Xcode6之后增加pch文件并且常用设置属性

//

//  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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值