Skip to content

Commit

Permalink
修复照片列表页初次打开时的闪烁;发布1.9.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
banchichen committed Aug 30, 2017
1 parent 13a132f commit 66d9e05
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions TZImagePickerController.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|
s.name = "TZImagePickerController"
s.version = "1.8.9"
s.version = "1.9.0"
s.summary = "A clone of UIImagePickerController, support picking multiple photos、original photo and video"
s.homepage = "https://github.com/banchichen/TZImagePickerController"
s.license = "MIT"
s.author = { "banchichen" => "[email protected]" }
s.platform = :ios
s.ios.deployment_target = "6.0"
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "1.8.9" }
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "1.9.0" }
s.requires_arc = true
s.resources = "TZImagePickerController/TZImagePickerController/*.{png,bundle}"
s.source_files = "TZImagePickerController/TZImagePickerController/*.{h,m}"
Expand Down
2 changes: 1 addition & 1 deletion TZImagePickerController/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.8.9</string>
<string>1.9.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by 谭真 on 15/12/24.
// Copyright © 2015年 谭真. All rights reserved.
// version 1.8.9 - 2017.08.16
// version 1.9.0 - 2017.08.30
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Created by 谭真 on 15/12/24.
// Copyright © 2015年 谭真. All rights reserved.
// version 1.8.9 - 2017.08.16
// version 1.9.0 - 2017.08.30
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController

#import "TZImagePickerController.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ - (void)initSubviews {

[self checkSelectedModels];
[self configCollectionView];
_collectionView.hidden = YES;
[self configBottomToolBar];

[self scrollCollectionViewToBottom];
Expand Down Expand Up @@ -652,7 +653,10 @@ - (void)scrollCollectionViewToBottom {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[_collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:item inSection:0] atScrollPosition:UICollectionViewScrollPositionBottom animated:NO];
_shouldScrollToBottom = NO;
_collectionView.hidden = NO;
});
} else {
_collectionView.hidden = NO;
}
}

Expand Down Expand Up @@ -738,6 +742,7 @@ - (void)reloadPhotoArray {
[tzImagePickerVc.selectedModels addObject:assetModel];
[self refreshBottomToolBarStatus];
}
_collectionView.hidden = YES;
[_collectionView reloadData];

_shouldScrollToBottom = YES;
Expand Down

0 comments on commit 66d9e05

Please sign in to comment.