Commit bd474164 authored by yuzheng.tz's avatar yuzheng.tz

发布1.8.7版本 兼容业务方自己设置图片的方式

parent 283bdd5b
Pod::Spec.new do |s|
s.name = "TZImagePickerController"
s.version = "1.8.6"
s.version = "1.8.7"
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" => "tanzhenios@foxmail.com" }
s.platform = :ios
s.ios.deployment_target = "6.0"
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "1.8.6" }
s.source = { :git => "https://github.com/banchichen/TZImagePickerController.git", :tag => "1.8.7" }
s.requires_arc = true
s.resources = "TZImagePickerController/TZImagePickerController/*.{png,xib,nib,bundle}"
s.source_files = "TZImagePickerController/TZImagePickerController/*.{h,m}"
......
......@@ -4,7 +4,7 @@
//
// Created by 谭真 on 15/12/24.
// Copyright © 2015年 谭真. All rights reserved.
// version 1.8.6 - 2017.07.28
// version 1.8.7 - 2017.07.28
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
/*
......
......@@ -4,7 +4,7 @@
//
// Created by 谭真 on 15/12/24.
// Copyright © 2015年 谭真. All rights reserved.
// version 1.8.6 - 2017.07.28
// version 1.8.7 - 2017.07.28
// 更多信息,请前往项目的github地址:https://github.com/banchichen/TZImagePickerController
#import "TZImagePickerController.h"
......@@ -686,6 +686,11 @@
name = [name stringByAppendingString:@"@2x"];
NSString *imagePath = [imageBundle pathForResource:name ofType:@"png"];
UIImage *image = [UIImage imageWithContentsOfFile:imagePath];
if (!image) {
// 兼容业务方自己设置图片的方式
name = [name stringByReplacingOccurrencesOfString:@"@2x" withString:@""];
image = [UIImage imageNamed:name];
}
return image;
}
......
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