fix: set default image height

This commit is contained in:
Alfred Gao 2017-02-08 22:01:52 +08:00
parent 3de7a4ba2d
commit d4c9957d19
2 changed files with 2 additions and 1 deletions

View File

@ -344,6 +344,7 @@ public class TextFormater : NSObject {
0 != (_widthstring as NSString).doubleValue {
if _widthstring.contains("%") {
width = _width * CGFloat((_widthstring as NSString).doubleValue) / 100
height = _height * CGFloat((_widthstring as NSString).doubleValue) / 100
} else {
width = CGFloat((_widthstring as NSString).doubleValue)
height = _height * width / _width

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'TextFormater'
s.version = '1.2.2'
s.version = '1.2.3'
s.summary = 'Convert String to NSAttributedString'
s.description = <<-DESC