ZZResourceConfig.h
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// ZZResourceConfig.h
// ZZPhotoKit
//
// Created by 袁亮 on 16/5/19.
// Copyright © 2016年 Ace. All rights reserved.
//
#ifndef ZZResourceConfig_h
#define ZZResourceConfig_h
/////配置文件/////
/*
公共文件
*/
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <Photos/Photos.h>
#import <AVFoundation/AVFoundation.h>
#import <AssetsLibrary/ALAsset.h>
#import <AssetsLibrary/ALAssetsLibrary.h>
#import <AssetsLibrary/ALAssetsGroup.h>
#import <AssetsLibrary/ALAssetRepresentation.h>
/*
控制器
*/
#define ZZ_VW (self.view.frame.size.width)
#define ZZ_VH (self.view.frame.size.height)
#define ZZ_SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define ZZ_SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
/*
颜色
*/
#define ZZ_RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define ZZ_RGB(r,g,b) ZZ_RGBA(r,g,b,1.0f)
/*
图片
*/
// 相册列表页面右边箭头图片
#define PhotoListRightBtn [UIImage imageNamed:@"zz_alumb_rightCell.png"]
// 相册列表页面,当没有数据时使用图片
#define NOPhoto_Data_Pic [UIImage imageNamed:@"no_data.png"]
// 图片选中状态图片
#define Pic_Btn_Selected [UIImage imageNamed:@"勾-选中.png"]
// 图片未选中状态图片
#define Pic_btn_UnSelected [UIImage imageNamed:@"勾-未选中.png"]
// 拍照图片
#define TakePhoto_Btn_Pic [UIImage imageNamed:@"take_photo_pic.png"]
// 闪光灯按钮图片
#define Flash_Open_Btn_Pic [UIImage imageNamed:@"flash_open_pic.png"]
#define Flash_close_Btn_Pic [UIImage imageNamed:@"flash_close_pic.png"]
// 切换前置后置摄像头按钮
#define Change_Btn_Pic [UIImage imageNamed:@"change_camera_pic.png"]
// 删除图片按钮
#define Remove_Btn_Pic [UIImage imageNamed:@"remove_btn_pic.png"]
/*
文字
*/
// 相册详细页面底部Footer显示文字
#define Total_Photo_Num @"%ld 张照片"
#define Total_Video_Num @"%ld 个视频"
#define Alert_Max_Selected @"最多只能选择%ld张图片"
#define Alert_Max_TakePhoto @"最多连拍张数为%ld张图片"
#endif /* ZZResourceConfig_h */