Skip to content

Commit

Permalink
If a badge alignment is specified in the init method, we must call th…
Browse files Browse the repository at this point in the history
…e setter so that UIAppearance doesn't override the value with the default one. Fixes issue #18.
  • Loading branch information
JaviSoto committed Oct 16, 2013
1 parent c9cee65 commit a0ffe25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JSBadgeView/JSBadgeView.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ - (id)initWithParentView:(UIView *)parentView alignment:(JSBadgeViewAlignment)al
{
if ((self = [self initWithFrame:CGRectZero]))
{
_badgeAlignment = alignment;
self.badgeAlignment = alignment;
[parentView addSubview:self];
}

Expand Down

0 comments on commit a0ffe25

Please sign in to comment.