From 819dc3453e7a67b434fbdccbd2d1b8ae8352f3d4 Mon Sep 17 00:00:00 2001 From: Sohail Khanifar Date: Tue, 28 Jun 2016 19:07:52 -0700 Subject: [PATCH 1/3] Give Badge Option for border --- RKNotificationHub/RKNotificationHub.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RKNotificationHub/RKNotificationHub.m b/RKNotificationHub/RKNotificationHub.m index b6fb59c..4d68b04 100644 --- a/RKNotificationHub/RKNotificationHub.m +++ b/RKNotificationHub/RKNotificationHub.m @@ -152,6 +152,11 @@ - (void)setCircleColor:(UIColor*)circleColor labelColor:(UIColor*)labelColor [countLabel setTextColor:labelColor]; } +- (void)setCircleBorderColor:(UIColor *)color borderWidth:(CGFloat)width { + redCircle.layer.borderColor = color.CGColor + redCircle.layer.borderWidth = width +} + - (void)hideCount { countLabel.hidden = YES; From c0603a573d403caf4ae0938e8feb2225db9de639 Mon Sep 17 00:00:00 2001 From: Sohail Khanifar Date: Tue, 28 Jun 2016 19:08:59 -0700 Subject: [PATCH 2/3] Update RKNotificationHub.h make func public --- RKNotificationHub/RKNotificationHub.h | 1 + 1 file changed, 1 insertion(+) diff --git a/RKNotificationHub/RKNotificationHub.h b/RKNotificationHub/RKNotificationHub.h index f1cdba8..a746456 100644 --- a/RKNotificationHub/RKNotificationHub.h +++ b/RKNotificationHub/RKNotificationHub.h @@ -49,6 +49,7 @@ FOUNDATION_EXPORT CGFloat const RKNotificationHubDefaultDiameter; - (void)setView:(UIView *)view andCount:(int)startCount; - (void)setCircleAtFrame:(CGRect)frame; - (void)setCircleColor:(UIColor*)circleColor labelColor:(UIColor*)labelColor; +- (void)setCircleBorderColor:(UIColor *)color borderWidth:(CGFloat)width; - (void)moveCircleByX:(CGFloat)x Y:(CGFloat)y; - (void)scaleCircleSizeBy:(CGFloat)scale; @property (nonatomic, strong) UIFont *countLabelFont; From a5818554c98cca60eaded5b3865e358675c77988 Mon Sep 17 00:00:00 2001 From: Sohail Khanifar Date: Tue, 28 Jun 2016 19:15:13 -0700 Subject: [PATCH 3/3] missing semicolons --- RKNotificationHub/RKNotificationHub.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RKNotificationHub/RKNotificationHub.m b/RKNotificationHub/RKNotificationHub.m index 4d68b04..8f2623e 100644 --- a/RKNotificationHub/RKNotificationHub.m +++ b/RKNotificationHub/RKNotificationHub.m @@ -153,8 +153,8 @@ - (void)setCircleColor:(UIColor*)circleColor labelColor:(UIColor*)labelColor } - (void)setCircleBorderColor:(UIColor *)color borderWidth:(CGFloat)width { - redCircle.layer.borderColor = color.CGColor - redCircle.layer.borderWidth = width + redCircle.layer.borderColor = color.CGColor; + redCircle.layer.borderWidth = width; } - (void)hideCount