Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactor innerGlowFrame

  • Loading branch information...
commit 60173df79322a3a21983fb439b9db117ebba22f1 1 parent f4af1c0
@kaishin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Custom UIButtons/CBLayer.m
View
2  Custom UIButtons/CBLayer.m
@@ -161,7 +161,7 @@ - (void)drawInnerGlow
_innerGlow = [CALayer layer];
// Set the frame (1pt inset)
- CGRect innerGlowFrame = CGRectMake(CGRectGetMinX(self.bounds)+1, CGRectGetMinY(self.bounds)+1, CGRectGetWidth(self.bounds)-2, CGRectGetHeight(self.bounds)-2);
+ CGRect innerGlowFrame = CGRectInset(self.bounds, 1, 1);
_innerGlow.frame = innerGlowFrame;
_innerGlow.cornerRadius= 4.5f;
Please sign in to comment.
Something went wrong with that request. Please try again.