From 776ef70c19074bf6533e5f131eb3b1b97ac5ea93 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 2 Jun 2015 14:59:34 +0800 Subject: [PATCH] fix radius for iPhone plus --- Yep/Extensions/UIImage+Yep.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yep/Extensions/UIImage+Yep.swift b/Yep/Extensions/UIImage+Yep.swift index 2f27725a..dbc93214 100644 --- a/Yep/Extensions/UIImage+Yep.swift +++ b/Yep/Extensions/UIImage+Yep.swift @@ -11,7 +11,7 @@ import UIKit extension UIImage { func roundImageOfRadius(radius: CGFloat) -> UIImage { - let radius = floor(radius - 0.5) + let radius = floor(radius - UIDevice.matchMarginFrom(0.5, 0.5, 1.5)) return self.largestCenteredSquareImage().resizeToTargetSize(CGSize(width: radius * 2, height: radius * 2)).roundImage() }