diff --git a/SCLAlertView-Objective-C.podspec b/SCLAlertView-Objective-C.podspec index eb8f28c..9098592 100644 --- a/SCLAlertView-Objective-C.podspec +++ b/SCLAlertView-Objective-C.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "SCLAlertView-Objective-C" - spec.version = "0.3.2" + spec.version = "0.3.3" spec.summary = "Beautiful animated Alert View. Written in Swift but ported to Objective-C" spec.homepage = "https://github.com/dogo/SCLAlertView" spec.screenshots = "https://raw.githubusercontent.com/dogo/SCLAlertView/master/ScreenShots/ScreenShot.png", "https://raw.githubusercontent.com/dogo/SCLAlertView/master/ScreenShots/ScreenShot2.png" @@ -10,7 +10,7 @@ Pod::Spec.new do |spec| spec.social_media_url = "http://twitter.com/di_autilio" spec.platform = :ios spec.ios.deployment_target = '7.0' - spec.source = { :git => "https://github.com/dogo/SCLAlertView.git", :tag => "0.3.2" } + spec.source = { :git => "https://github.com/dogo/SCLAlertView.git", :tag => spec.version.to_s } spec.source_files = "SCLAlertView/*" spec.requires_arc = true end diff --git a/SCLAlertView/SCLAlertView.m b/SCLAlertView/SCLAlertView.m index feaadad..c0247ce 100755 --- a/SCLAlertView/SCLAlertView.m +++ b/SCLAlertView/SCLAlertView.m @@ -126,6 +126,8 @@ - (instancetype)init // View text _viewText.editable = NO; _viewText.allowsEditingTextAttributes = YES; + _viewText.textContainerInset = UIEdgeInsetsZero; + _viewText.textContainer.lineFragmentPadding = 0; _viewText.textAlignment = NSTextAlignmentCenter; _viewText.font = [UIFont fontWithName:kDefaultFont size:14.0f]; @@ -517,7 +519,7 @@ -(SCLAlertViewResponder *)showTitle:(UIViewController *)vc image:(UIImage *)imag { NSString *str = subTitle; CGRect r = [str boundingRectWithSize:sz options:NSStringDrawingUsesLineFragmentOrigin attributes:attr context:nil]; - CGFloat ht = ceil(r.size.height) + 10; + CGFloat ht = ceil(r.size.height); if (ht < kTextHeight) { kWindowHeight -= (kTextHeight - ht); @@ -528,7 +530,7 @@ -(SCLAlertViewResponder *)showTitle:(UIViewController *)vc image:(UIImage *)imag { NSAttributedString *str =[[NSAttributedString alloc] initWithString:subTitle attributes:attr]; CGRect r = [str boundingRectWithSize:sz options:NSStringDrawingUsesLineFragmentOrigin context:nil]; - CGFloat ht = ceil(r.size.height) + 10; + CGFloat ht = ceil(r.size.height); if (ht < kTextHeight) { kWindowHeight -= (kTextHeight - ht);