From ab813f1789f779b29c83a000c759889fae0d808a Mon Sep 17 00:00:00 2001 From: Diogo Autilio Date: Thu, 3 Mar 2016 12:27:11 -0300 Subject: [PATCH 1/2] Add aspect fill content mode property to circleIconImageView, fixes problems with custom icons --- SCLAlertView/SCLAlertView.m | 1 + 1 file changed, 1 insertion(+) diff --git a/SCLAlertView/SCLAlertView.m b/SCLAlertView/SCLAlertView.m index 78b6c48..56b84c0 100755 --- a/SCLAlertView/SCLAlertView.m +++ b/SCLAlertView/SCLAlertView.m @@ -203,6 +203,7 @@ - (void)setupViewWindowWidth:(CGFloat)windowWidth _circleView.layer.cornerRadius = _circleView.frame.size.height / 2; x = (kCircleHeight - _circleIconHeight) / 2; _circleIconImageView.frame = CGRectMake(x, x, _circleIconHeight, _circleIconHeight); + _circleIconImageView.contentMode = UIViewContentModeScaleAspectFill; [_circleViewBackground addSubview:_circleView]; [_circleView addSubview:_circleIconImageView]; From dcb689e3968f169435f65a05e6b4c691597985e2 Mon Sep 17 00:00:00 2001 From: Diogo Autilio Date: Thu, 3 Mar 2016 12:27:50 -0300 Subject: [PATCH 2/2] Bump version --- SCLAlertView-Objective-C.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCLAlertView-Objective-C.podspec b/SCLAlertView-Objective-C.podspec index 68eb638..4be9550 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.9.2" + spec.version = "0.9.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"