Skip to content

Commit 03e5adc

Browse files
committed
release 3.4.1,相册列表页的tableView支持自定义样式
1 parent 598c71f commit 03e5adc

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## 重要提示1:提issue前,请先对照Demo、常见问题自查!Demo正常说明你可以升级下新版试试。
1010

11-
## 重要提示2:3.4.0版本适配了iOS14,修复2个严重问题,强烈建议尽快更新
11+
## 重要提示2:3.4.1版本适配了iOS14,修复2个严重问题,强烈建议尽快更新
1212

1313
关于升级iOS10和Xcdoe8的提示:
1414
在Xcode8环境下将项目运行在iOS10的设备/模拟器中,访问相册和相机需要额外配置info.plist文件。分别是Privacy - Photo Library Usage Description和Privacy - Camera Usage Description字段,详见Demo中info.plist中的设置。
@@ -123,7 +123,7 @@ A:不要去拿PHImageFileURLKey,没用的,只有通过Photos框架才能
123123

124124
## 六. Release Notes 最近更新
125125

126-
**3.4.0 适配iOS14,若干问题修复**
126+
**3.4.1 适配iOS14,若干问题修复**
127127
3.3.2 适配iOS13,若干问题修复
128128
3.2.1 新增裁剪用scaleAspectFillCrop属性,设置为YES后,照片尺寸小于裁剪框时会自动放大撑满
129129
3.2.0 加入用NSOperationQueue控制获取原图并发数降低内存的示例

TZImagePickerController.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Pod::Spec.new do |s|
22
s.name = "TZImagePickerController"
3-
s.version = "3.4.0"
3+
s.version = "3.4.1"
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" => "[email protected]" }
88
s.platform = :ios
99
s.ios.deployment_target = "8.0"
10-
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "3.4.0" }
10+
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "3.4.1" }
1111
s.requires_arc = true
1212
s.resources = "TZImagePickerController/TZImagePickerController/*.{png,bundle}"
1313
s.source_files = "TZImagePickerController/TZImagePickerController/*.{h,m}"

TZImagePickerController.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@
807807
INFOPLIST_FILE = TZImagePickerController/Info.plist;
808808
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
809809
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
810-
MARKETING_VERSION = 3.4.0;
810+
MARKETING_VERSION = 3.4.1;
811811
PRODUCT_BUNDLE_IDENTIFIER = tanzhenios2019.TZImagePickerController.www;
812812
PRODUCT_NAME = "$(TARGET_NAME)";
813813
PROVISIONING_PROFILE = "";
@@ -831,7 +831,7 @@
831831
INFOPLIST_FILE = TZImagePickerController/Info.plist;
832832
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
833833
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
834-
MARKETING_VERSION = 3.4.0;
834+
MARKETING_VERSION = 3.4.1;
835835
PRODUCT_BUNDLE_IDENTIFIER = tanzhenios2019.TZImagePickerController.www;
836836
PRODUCT_NAME = "$(TARGET_NAME)";
837837
PROVISIONING_PROFILE = "";
@@ -918,7 +918,7 @@
918918
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
919919
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
920920
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
921-
MARKETING_VERSION = 3.4.0;
921+
MARKETING_VERSION = 3.4.1;
922922
OTHER_LDFLAGS = "-all_load";
923923
PRODUCT_BUNDLE_IDENTIFIER = tanzhen.TZImagePickerControllerFramework;
924924
PRODUCT_NAME = TZImagePickerController;
@@ -959,7 +959,7 @@
959959
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
960960
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
961961
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
962-
MARKETING_VERSION = 3.4.0;
962+
MARKETING_VERSION = 3.4.1;
963963
OTHER_LDFLAGS = "-all_load";
964964
PRODUCT_BUNDLE_IDENTIFIER = tanzhen.TZImagePickerControllerFramework;
965965
PRODUCT_NAME = TZImagePickerController;

TZImagePickerController/TZImagePickerController/TZImagePickerController.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// Created by 谭真 on 15/12/24.
66
// Copyright © 2015年 谭真. All rights reserved.
7-
// version 3.4.0 - 2020.07.16
7+
// version 3.4.1 - 2020.07.20
88
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
99

1010
/*
@@ -178,13 +178,15 @@
178178
@property (nonatomic, copy) void (^photoPreviewPageUIConfigBlock)(UICollectionView *collectionView, UIView *naviBar, UIButton *backButton, UIButton *selectButton, UILabel *indexLabel, UIView *toolBar, UIButton *originalPhotoButton, UILabel *originalPhotoLabel, UIButton *doneButton, UIImageView *numberImageView, UILabel *numberLabel);
179179
@property (nonatomic, copy) void (^videoPreviewPageUIConfigBlock)(UIButton *playButton, UIView *toolBar, UIButton *doneButton);
180180
@property (nonatomic, copy) void (^gifPreviewPageUIConfigBlock)(UIView *toolBar, UIButton *doneButton);
181+
@property (nonatomic, copy) void (^albumPickerPageUIConfigBlock)(UITableView *tableView);
181182
@property (nonatomic, copy) void (^assetCellDidSetModelBlock)(TZAssetCell *cell, UIImageView *imageView, UIImageView *selectImageView, UILabel *indexLabel, UIView *bottomView, UILabel *timeLength, UIImageView *videoImgView);
182183
@property (nonatomic, copy) void (^albumCellDidSetModelBlock)(TZAlbumCell *cell, UIImageView *posterImageView, UILabel *titleLabel);
183184
/// 【自定义各页面/组件的frame】在界面viewDidLayoutSubviews/组件layoutSubviews后调用,允许外界修改frame等
184185
@property (nonatomic, copy) void (^photoPickerPageDidLayoutSubviewsBlock)(UICollectionView *collectionView, UIView *bottomToolBar, UIButton *previewButton, UIButton *originalPhotoButton, UILabel *originalPhotoLabel, UIButton *doneButton, UIImageView *numberImageView, UILabel *numberLabel, UIView *divideLine);
185186
@property (nonatomic, copy) void (^photoPreviewPageDidLayoutSubviewsBlock)(UICollectionView *collectionView, UIView *naviBar, UIButton *backButton, UIButton *selectButton, UILabel *indexLabel, UIView *toolBar, UIButton *originalPhotoButton, UILabel *originalPhotoLabel, UIButton *doneButton, UIImageView *numberImageView, UILabel *numberLabel);
186187
@property (nonatomic, copy) void (^videoPreviewPageDidLayoutSubviewsBlock)(UIButton *playButton, UIView *toolBar, UIButton *doneButton);
187188
@property (nonatomic, copy) void (^gifPreviewPageDidLayoutSubviewsBlock)(UIView *toolBar, UIButton *doneButton);
189+
@property (nonatomic, copy) void (^albumPickerPageDidLayoutSubviewsBlock)(UITableView *tableView);
188190
@property (nonatomic, copy) void (^assetCellDidLayoutSubviewsBlock)(TZAssetCell *cell, UIImageView *imageView, UIImageView *selectImageView, UILabel *indexLabel, UIView *bottomView, UILabel *timeLength, UIImageView *videoImgView);
189191
@property (nonatomic, copy) void (^albumCellDidLayoutSubviewsBlock)(TZAlbumCell *cell, UIImageView *posterImageView, UILabel *titleLabel);
190192
/// 自定义各页面/组件的frame】刷新底部状态(refreshNaviBarAndBottomBarState)使用的

TZImagePickerController/TZImagePickerController/TZImagePickerController.m

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// Created by 谭真 on 15/12/24.
66
// Copyright © 2015年 谭真. All rights reserved.
7-
// version 3.4.0 - 2020.07.16
7+
// version 3.4.1 - 2020.07.20
88
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
99

1010
#import "TZImagePickerController.h"
@@ -778,6 +778,9 @@ - (void)configTableView {
778778
self->_tableView.delegate = self;
779779
[self->_tableView registerClass:[TZAlbumCell class] forCellReuseIdentifier:@"TZAlbumCell"];
780780
[self.view addSubview:self->_tableView];
781+
if (imagePickerVc.albumPickerPageUIConfigBlock) {
782+
imagePickerVc.albumPickerPageUIConfigBlock(self->_tableView);
783+
}
781784
} else {
782785
[self->_tableView reloadData];
783786
}
@@ -825,6 +828,10 @@ - (void)viewDidLayoutSubviews {
825828
tableViewHeight = self.view.tz_height;
826829
}
827830
_tableView.frame = CGRectMake(0, top, self.view.tz_width, tableViewHeight);
831+
TZImagePickerController *imagePickerVc = (TZImagePickerController *)self.navigationController;
832+
if (imagePickerVc.albumPickerPageDidLayoutSubviewsBlock) {
833+
imagePickerVc.albumPickerPageDidLayoutSubviewsBlock(_tableView);
834+
}
828835
}
829836

830837
#pragma mark - UITableViewDataSource && Delegate

0 commit comments

Comments
 (0)