Skip to content

Commit 0737c61

Browse files
author
yuzheng
committed
修复photoWidth属性失效的问题;发布3.1.8版本
1 parent 2f3bb53 commit 0737c61

9 files changed

Lines changed: 10 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ A:不要去拿PHImageFileURLKey,没用的,只有通过Photos框架才能
124124

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

127-
3.1.7 批量获取图片时加入队列控制,尝试优化大批量选择图片时CPU和内存占用过高的问题(仍然危险,maxImagesCount谨慎设置过大...)
127+
3.1.8 批量获取图片时加入队列控制,尝试优化大批量选择图片时CPU和内存占用过高的问题(仍然危险,maxImagesCount谨慎设置过大...)
128128
3.1.5 相册内无照片时给出提示,修复快速滑动时内存一直增加的问题
129129
3.1.3 适配阿拉伯等语言下从右往左布局的特性
130130
3.0.8 新增gifImagePlayBlock允许使用FLAnimatedImage等替换内部的GIF播放方案

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.1.7"
3+
s.version = "3.1.8"
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
99
s.ios.deployment_target = "8.0"
10-
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "3.1.7" }
10+
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "3.1.8" }
1111
s.requires_arc = true
1212
s.resources = "TZImagePickerController/TZImagePickerController/*.{png,bundle}"
1313
s.source_files = "TZImagePickerController/TZImagePickerController/*.{h,m}"

TZImagePickerController/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.1.7</string>
18+
<string>3.1.8</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

TZImagePickerController/TZImagePickerController/TZImageManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ - (PHImageRequestID)getPhotoWithAsset:(PHAsset *)asset photoWidth:(CGFloat)photo
347347
} else {
348348
PHAsset *phAsset = (PHAsset *)asset;
349349
CGFloat aspectRatio = phAsset.pixelWidth / (CGFloat)phAsset.pixelHeight;
350-
CGFloat pixelWidth = photoWidth * TZScreenScale * 1.5;
350+
CGFloat pixelWidth = photoWidth * TZScreenScale;
351351
// 超宽图片
352352
if (aspectRatio > 1.8) {
353353
pixelWidth = pixelWidth * aspectRatio;

TZImagePickerController/TZImagePickerController/TZImagePickerController.h

Lines changed: 1 addition & 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.1.7 - 2019.01.04
7+
// version 3.1.8 - 2019.01.14
88
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
99

1010
/*

TZImagePickerController/TZImagePickerController/TZImagePickerController.m

Lines changed: 1 addition & 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.1.7 - 2019.01.04
7+
// version 3.1.8 - 2019.01.14
88
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
99

1010
#import "TZImagePickerController.h"

TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ - (void)viewDidLayoutSubviews {
345345
_divideLine.frame = CGRectMake(0, 0, self.view.tz_width, 1);
346346

347347
[TZImageManager manager].columnNumber = [TZImageManager manager].columnNumber;
348+
[TZImageManager manager].photoWidth = tzImagePickerVc.photoWidth;
348349
[self.collectionView reloadData];
349350

350351
if (tzImagePickerVc.photoPickerPageDidLayoutSubviewsBlock) {

TZImagePickerController/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ - (void)pushTZImagePickerController {
270270
imagePickerController.videoQuality = UIImagePickerControllerQualityTypeHigh;
271271
}];
272272

273-
// imagePickerVc.photoWidth = 1000;
273+
// imagePickerVc.photoWidth = 800;
274274

275275
// 2. Set the appearance
276276
// 2. 在这里设置imagePickerVc的外观

TZImagePickerControllerFramework/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.1.7</string>
18+
<string>3.1.8</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

0 commit comments

Comments
 (0)