Skip to content
Browse files

Refactor innerGlowFrame

  • Loading branch information...
1 parent f4af1c0 commit 60173df79322a3a21983fb439b9db117ebba22f1 @kaishin committed Oct 12, 2012
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;

0 comments on commit 60173df

Please sign in to comment.
Something went wrong with that request. Please try again.