Commit ddab42e8 authored by banchichen's avatar banchichen

修复在外界预览时取消选中返回后再次预览出现的数组越界问题

parent c26b8ba6
Pod::Spec.new do |s|
s.name = "TZImagePickerController"
s.version = "1.4.0"
s.version = "1.4.2"
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" => "736420282@qq.com" }
s.platform = :ios
s.ios.deployment_target = "6.0"
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "1.4.0" }
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "1.4.2" }
s.requires_arc = true
s.resources = "TZImagePickerController/TZImagePickerController/*.{png,xib,nib,bundle}"
s.source_files = "TZImagePickerController/TZImagePickerController/*.{h,m}"
......
......@@ -113,7 +113,7 @@
TZPhotoPreviewController *previewVc = [[TZPhotoPreviewController alloc] init];
self = [super initWithRootViewController:previewVc];
if (self) {
self.selectedAssets = selectedAssets;
self.selectedAssets = [NSMutableArray arrayWithArray:selectedAssets];
self.allowPickingOriginalPhoto = YES;
self.timeout = 15;
self.photoWidth = 828.0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment