File tree Expand file tree Collapse file tree
TZImagePickerControllerFramework Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111 ## 重要提示2:issue未说明下面必要情况的不予处理:1、我的demo是否正常? 2、你用的什么版本? 3、你的初始化TZImagePicker的代码 4、你是pod安装还是源码导入的?是否有改动TZImagePicker内部代码?
1212
13- ## 重要提示3:1.9.0版本后移除了"prefs: root ="的调用,这个API已经被列为私有API,请大家尽快升级。目前最新版本2.2.6
13+ ## 重要提示3:1.9.0版本后移除了"prefs: root ="的调用,这个API已经被列为私有API,请大家尽快升级。
1414
1515 关于升级iOS10和Xcdoe8的提示:
1616 在Xcode8环境下将项目运行在iOS10的设备/模拟器中,访问相册和相机需要额外配置info.plist文件。分别是Privacy - Photo Library Usage Description和Privacy - Camera Usage Description字段,详见Demo中info.plist中的设置。
@@ -120,28 +120,22 @@ A:视频导出分两步,第一步是通过PHAsset获取AVURLAsset,如是iC
120120
121121## 六. Release Notes 最近更新
122122
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的版本** )
1271252.1.5 修复开启showSelectedIndex后照片列表页iCloud图片进度条紊乱的bug
1281262.1.4 新增多个页面和组件的样式自定义block,允许自定义绝大多数UI样式
1291272.1.2 新增showPhotoCannotSelectLayer属性,当已选照片张数达到最大可选张数时,可像微信一样让其它照片显示一个提示不可选的浮层
1301282.1.1 新增是否显示图片选中序号的属性,优化一些细节
1311292.1.0.3 新增拍摄视频功能,优化一些细节
132- 2.0.1 修复一些bug
1331302.0.0.6 优化自定义languageBundle的支持,加入使用示例
1341312.0.0.5 优化性能,提高选择器打开速度,新增越南语支持
1351322.0.0.2 新增繁体语言,可设置首选语言,国际化支持更强大;优化一些细节
1361331.9.8 支持Carthage,优化一些细节
1371341.9.6 优化视频预览和gif预览页toolbar在iPhoneX上的样式
138- 1.9.5 优化视频导出API,和其它一些细节
139- 1.9.4 适配iPhoneX
1401351.9.0 移除"prefs: root ="的调用,这个API已经被列为私有API,请大家尽快升级
141136...
1421371.8.4 加入横竖屏适配;支持视频/gif多选;支持视频和照片一起选
1431381.8.1 新增2个代理方法,支持由上层来决定相册/照片的显示与否
144- 1.8.0 修复若干bug, 提升流畅度
145139...
1461401.7.7 支持GIF图片的播放和选择
1471411.7.6 支持对共享相册和同步相册的显示
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22 s . name = "TZImagePickerController"
3- s . version = "2.2.6 "
3+ s . version = "3.0.0 "
44 s . summary = "A clone of UIImagePickerController, support picking multiple photos、original photo and video"
55 s . homepage = "https://github.com/banchichen/TZImagePickerController"
66 s . license = "MIT"
77 s . author = { "banchichen" => "tanzhenios@foxmail.com" }
88 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 " }
1111 s . requires_arc = true
1212 s . resources = "TZImagePickerController/TZImagePickerController/*.{png,bundle}"
1313 s . source_files = "TZImagePickerController/TZImagePickerController/*.{h,m}"
Original file line number Diff line number Diff line change 1515 <key >CFBundlePackageType </key >
1616 <string >APPL </string >
1717 <key >CFBundleShortVersionString </key >
18- <string >2.2.6 </string >
18+ <string >3.0.0 </string >
1919 <key >CFBundleSignature </key >
2020 <string >???? </string >
2121 <key >CFBundleVersion </key >
Original file line number Diff line number Diff line change 4646
4747// / Return YES if Authorized 返回YES如果得到了授权
4848- (BOOL )authorizationStatusAuthorized ;
49- + (NSInteger )authorizationStatus ;
5049- (void )requestAuthorizationWithCompletion : (void (^)(void ))completion ;
5150
5251// / Get Album 获得相册/相册数组
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ - (void)configTZScreenWidth {
6565
6666// / Return YES if Authorized 返回YES如果得到了授权
6767- (BOOL )authorizationStatusAuthorized {
68- NSInteger status = [self .class authorizationStatus ];
68+ NSInteger status = [PHPhotoLibrary authorizationStatus ];
6969 if (status == 0 ) {
7070 /* *
7171 * 当某些情况下AuthorizationStatus == AuthorizationStatusNotDetermined时,无法弹出系统首次使用的授权alertView,系统应用设置里亦没有相册的设置,此时将无法使用,故作以下操作,弹出系统首次使用的授权alertView
@@ -76,10 +76,6 @@ - (BOOL)authorizationStatusAuthorized {
7676 return status == 3 ;
7777}
7878
79- + (NSInteger )authorizationStatus {
80- return [PHPhotoLibrary authorizationStatus ];
81- }
82-
8379- (void )requestAuthorizationWithCompletion : (void (^)(void ))completion {
8480 void (^callCompletionBlock)(void ) = ^(){
8581 dispatch_async (dispatch_get_main_queue (), ^{
Original file line number Diff line number Diff line change 44//
55// Created by 谭真 on 15/12/24.
66// Copyright © 2015年 谭真. All rights reserved.
7- // version 2.2.6 - 2018.08.21
7+ // version 3.0.0 - 2018.08.23
88// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
99
1010/*
Original file line number Diff line number Diff line change 44//
55// Created by 谭真 on 15/12/24.
66// Copyright © 2015年 谭真. All rights reserved.
7- // version 2.2.6 - 2018.08.21
7+ // version 3.0.0 - 2018.08.23
88// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
99
1010#import " TZImagePickerController.h"
@@ -195,7 +195,7 @@ - (instancetype)initWithMaxImagesCount:(NSInteger)maxImagesCount columnNumber:(N
195195 [_settingBtn addTarget: self action: @selector (settingBtnClick ) forControlEvents: UIControlEventTouchUpInside];
196196 [self .view addSubview: _settingBtn];
197197
198- if ([TZImageManager authorizationStatus ] == 0 ) {
198+ if ([PHPhotoLibrary authorizationStatus ] == 0 ) {
199199 _timer = [NSTimer scheduledTimerWithTimeInterval: 0.2 target: self selector: @selector (observeAuthrizationStatusChange ) userInfo: nil repeats: NO ];
200200 }
201201 } else {
@@ -364,7 +364,7 @@ - (void)setNeedFixComposition:(BOOL)needFixComposition {
364364- (void )observeAuthrizationStatusChange {
365365 [_timer invalidate ];
366366 _timer = nil ;
367- if ([TZImageManager authorizationStatus ] == 0 ) {
367+ if ([PHPhotoLibrary authorizationStatus ] == 0 ) {
368368 _timer = [NSTimer scheduledTimerWithTimeInterval: 0.2 target: self selector: @selector (observeAuthrizationStatusChange ) userInfo: nil repeats: NO ];
369369 }
370370
Original file line number Diff line number Diff line change @@ -388,10 +388,10 @@ - (void)takePhoto {
388388 }
389389 }];
390390 // 拍照之前还需要检查相册权限
391- } else if ([TZImageManager authorizationStatus ] == 2 ) { // 已被拒绝,没有相册权限,将无法保存拍的照片
391+ } else if ([PHPhotoLibrary authorizationStatus ] == 2 ) { // 已被拒绝,没有相册权限,将无法保存拍的照片
392392 UIAlertView * alert = [[UIAlertView alloc ]initWithTitle:@" 无法访问相册" message: @" 请在iPhone的" " 设置-隐私-相册" " 中允许访问相册" delegate: self cancelButtonTitle: @" 取消" otherButtonTitles: @" 设置" , nil ];
393393 [alert show ];
394- } else if ([TZImageManager authorizationStatus ] == 0 ) { // 未请求过相册权限
394+ } else if ([PHPhotoLibrary authorizationStatus ] == 0 ) { // 未请求过相册权限
395395 [[TZImageManager manager ] requestAuthorizationWithCompletion: ^{
396396 [self takePhoto ];
397397 }];
Original file line number Diff line number Diff line change 1515 <key >CFBundlePackageType </key >
1616 <string >FMWK </string >
1717 <key >CFBundleShortVersionString </key >
18- <string >2.2.6 </string >
18+ <string >3.0.0 </string >
1919 <key >CFBundleVersion </key >
2020 <string >$(CURRENT_PROJECT_VERSION) </string >
2121 <key >NSPrincipalClass </key >
You can’t perform that action at this time.
0 commit comments