File tree Expand file tree Collapse file tree 9 files changed +15
-26
lines changed
TZImagePickerControllerFramework Expand file tree Collapse file tree 9 files changed +15
-26
lines changed Original file line number Diff line number Diff line change 10
10
11
11
## 重要提示2:issue未说明下面必要情况的不予处理:1、我的demo是否正常? 2、你用的什么版本? 3、你的初始化TZImagePicker的代码 4、你是pod安装还是源码导入的?是否有改动TZImagePicker内部代码?
12
12
13
- ## 重要提示3:1.9.0版本后移除了"prefs: root ="的调用,这个API已经被列为私有API,请大家尽快升级。目前最新版本2.2.6
13
+ ## 重要提示3:1.9.0版本后移除了"prefs: root ="的调用,这个API已经被列为私有API,请大家尽快升级。
14
14
15
15
关于升级iOS10和Xcdoe8的提示:
16
16
在Xcode8环境下将项目运行在iOS10的设备/模拟器中,访问相册和相机需要额外配置info.plist文件。分别是Privacy - Photo Library Usage Description和Privacy - Camera Usage Description字段,详见Demo中info.plist中的设置。
@@ -120,28 +120,22 @@ A:视频导出分两步,第一步是通过PHAsset获取AVURLAsset,如是iC
120
120
121
121
## 六. Release Notes 最近更新
122
122
123
- 2.2.6 新增needFixComposition属性,默认为NO,不再主动修正视频转向,防止部分安卓拍的视频导出失败
124
- 2.2.5 修复minPhotoWidthSelectable不生效的问题, 使用@available 消除警告
125
- 2.1.8 优化gif图播放的体验,加入iCloud同步进度条;新增notScaleImage属性,设置为YES时内部不去缩放图片
126
- 2.1.6 新增allowCameraLocation属性,默认为YES,置为NO时不会在照相/摄像时定位,修复一个序号紊乱的bug
123
+ ** 3.0.0 去除iOS6和7的适配代码,更轻量,最低支持iOS8**
124
+ 2.2.6 新增needFixComposition属性,默认为NO,不再主动修正视频转向,防止部分安卓拍的视频导出失败(** 最后一个支持iOS6和7的版本** )
127
125
2.1.5 修复开启showSelectedIndex后照片列表页iCloud图片进度条紊乱的bug
128
126
2.1.4 新增多个页面和组件的样式自定义block,允许自定义绝大多数UI样式
129
127
2.1.2 新增showPhotoCannotSelectLayer属性,当已选照片张数达到最大可选张数时,可像微信一样让其它照片显示一个提示不可选的浮层
130
128
2.1.1 新增是否显示图片选中序号的属性,优化一些细节
131
129
2.1.0.3 新增拍摄视频功能,优化一些细节
132
- 2.0.1 修复一些bug
133
130
2.0.0.6 优化自定义languageBundle的支持,加入使用示例
134
131
2.0.0.5 优化性能,提高选择器打开速度,新增越南语支持
135
132
2.0.0.2 新增繁体语言,可设置首选语言,国际化支持更强大;优化一些细节
136
133
1.9.8 支持Carthage,优化一些细节
137
134
1.9.6 优化视频预览和gif预览页toolbar在iPhoneX上的样式
138
- 1.9.5 优化视频导出API,和其它一些细节
139
- 1.9.4 适配iPhoneX
140
135
1.9.0 移除"prefs: root ="的调用,这个API已经被列为私有API,请大家尽快升级
141
136
...
142
137
1.8.4 加入横竖屏适配;支持视频/gif多选;支持视频和照片一起选
143
138
1.8.1 新增2个代理方法,支持由上层来决定相册/照片的显示与否
144
- 1.8.0 修复若干bug, 提升流畅度
145
139
...
146
140
1.7.7 支持GIF图片的播放和选择
147
141
1.7.6 支持对共享相册和同步相册的显示
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = "TZImagePickerController"
3
- s . version = "2.2.6 "
3
+ s . version = "3.0.0 "
4
4
s . summary = "A clone of UIImagePickerController, support picking multiple photos、original photo and video"
5
5
s . homepage = "https://github.com/banchichen/TZImagePickerController"
6
6
s . license = "MIT"
7
7
s . author = { "banchichen" => "tanzhenios@foxmail.com" }
8
8
s . platform = :ios
9
- s . ios . deployment_target = "6 .0"
10
- s . source = { :git => "https://github.com/banchichen/TZImagePickerController.git" , :tag => "2.2.6 " }
9
+ s . ios . deployment_target = "8 .0"
10
+ s . source = { :git => "https://github.com/banchichen/TZImagePickerController.git" , :tag => "3.0.0 " }
11
11
s . requires_arc = true
12
12
s . resources = "TZImagePickerController/TZImagePickerController/*.{png,bundle}"
13
13
s . source_files = "TZImagePickerController/TZImagePickerController/*.{h,m}"
Original file line number Diff line number Diff line change 15
15
<key >CFBundlePackageType </key >
16
16
<string >APPL </string >
17
17
<key >CFBundleShortVersionString </key >
18
- <string >2.2.6 </string >
18
+ <string >3.0.0 </string >
19
19
<key >CFBundleSignature </key >
20
20
<string >???? </string >
21
21
<key >CFBundleVersion </key >
Original file line number Diff line number Diff line change 46
46
47
47
// / Return YES if Authorized 返回YES如果得到了授权
48
48
- (BOOL )authorizationStatusAuthorized ;
49
- + (NSInteger )authorizationStatus ;
50
49
- (void )requestAuthorizationWithCompletion : (void (^)(void ))completion ;
51
50
52
51
// / Get Album 获得相册/相册数组
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ - (void)configTZScreenWidth {
65
65
66
66
// / Return YES if Authorized 返回YES如果得到了授权
67
67
- (BOOL )authorizationStatusAuthorized {
68
- NSInteger status = [self .class authorizationStatus ];
68
+ NSInteger status = [PHPhotoLibrary authorizationStatus ];
69
69
if (status == 0 ) {
70
70
/* *
71
71
* 当某些情况下AuthorizationStatus == AuthorizationStatusNotDetermined时,无法弹出系统首次使用的授权alertView,系统应用设置里亦没有相册的设置,此时将无法使用,故作以下操作,弹出系统首次使用的授权alertView
@@ -76,10 +76,6 @@ - (BOOL)authorizationStatusAuthorized {
76
76
return status == 3 ;
77
77
}
78
78
79
- + (NSInteger )authorizationStatus {
80
- return [PHPhotoLibrary authorizationStatus ];
81
- }
82
-
83
79
- (void )requestAuthorizationWithCompletion : (void (^)(void ))completion {
84
80
void (^callCompletionBlock)(void ) = ^(){
85
81
dispatch_async (dispatch_get_main_queue (), ^{
Original file line number Diff line number Diff line change 4
4
//
5
5
// Created by 谭真 on 15/12/24.
6
6
// Copyright © 2015年 谭真. All rights reserved.
7
- // version 2.2.6 - 2018.08.21
7
+ // version 3.0.0 - 2018.08.23
8
8
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
9
9
10
10
/*
Original file line number Diff line number Diff line change 4
4
//
5
5
// Created by 谭真 on 15/12/24.
6
6
// Copyright © 2015年 谭真. All rights reserved.
7
- // version 2.2.6 - 2018.08.21
7
+ // version 3.0.0 - 2018.08.23
8
8
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
9
9
10
10
#import " TZImagePickerController.h"
@@ -195,7 +195,7 @@ - (instancetype)initWithMaxImagesCount:(NSInteger)maxImagesCount columnNumber:(N
195
195
[_settingBtn addTarget: self action: @selector (settingBtnClick ) forControlEvents: UIControlEventTouchUpInside];
196
196
[self .view addSubview: _settingBtn];
197
197
198
- if ([TZImageManager authorizationStatus ] == 0 ) {
198
+ if ([PHPhotoLibrary authorizationStatus ] == 0 ) {
199
199
_timer = [NSTimer scheduledTimerWithTimeInterval: 0.2 target: self selector: @selector (observeAuthrizationStatusChange ) userInfo: nil repeats: NO ];
200
200
}
201
201
} else {
@@ -364,7 +364,7 @@ - (void)setNeedFixComposition:(BOOL)needFixComposition {
364
364
- (void )observeAuthrizationStatusChange {
365
365
[_timer invalidate ];
366
366
_timer = nil ;
367
- if ([TZImageManager authorizationStatus ] == 0 ) {
367
+ if ([PHPhotoLibrary authorizationStatus ] == 0 ) {
368
368
_timer = [NSTimer scheduledTimerWithTimeInterval: 0.2 target: self selector: @selector (observeAuthrizationStatusChange ) userInfo: nil repeats: NO ];
369
369
}
370
370
Original file line number Diff line number Diff line change @@ -388,10 +388,10 @@ - (void)takePhoto {
388
388
}
389
389
}];
390
390
// 拍照之前还需要检查相册权限
391
- } else if ([TZImageManager authorizationStatus ] == 2 ) { // 已被拒绝,没有相册权限,将无法保存拍的照片
391
+ } else if ([PHPhotoLibrary authorizationStatus ] == 2 ) { // 已被拒绝,没有相册权限,将无法保存拍的照片
392
392
UIAlertView * alert = [[UIAlertView alloc ]initWithTitle:@" 无法访问相册" message: @" 请在iPhone的" " 设置-隐私-相册" " 中允许访问相册" delegate: self cancelButtonTitle: @" 取消" otherButtonTitles: @" 设置" , nil ];
393
393
[alert show ];
394
- } else if ([TZImageManager authorizationStatus ] == 0 ) { // 未请求过相册权限
394
+ } else if ([PHPhotoLibrary authorizationStatus ] == 0 ) { // 未请求过相册权限
395
395
[[TZImageManager manager ] requestAuthorizationWithCompletion: ^{
396
396
[self takePhoto ];
397
397
}];
Original file line number Diff line number Diff line change 15
15
<key >CFBundlePackageType </key >
16
16
<string >FMWK </string >
17
17
<key >CFBundleShortVersionString </key >
18
- <string >2.2.6 </string >
18
+ <string >3.0.0 </string >
19
19
<key >CFBundleVersion </key >
20
20
<string >$(CURRENT_PROJECT_VERSION) </string >
21
21
<key >NSPrincipalClass </key >
You can’t perform that action at this time.
0 commit comments