TanguyAladenise / BBBadgeBarButtonItem

A BarButtonItem with a badge on top.
MIT License
963 stars 154 forks source link

Adds label's layer -masksToBounds to fix round corner issues #2

Closed dzenbot closed 10 years ago

dzenbot commented 10 years ago

Before this change, the badge label was showing as a rect with no rounded corners: image

Then, when adding:

self.badge.layer.masksToBounds = YES;

The result was looking better: image

TanguyAladenise commented 10 years ago

I have made a major update in the structure of my repo yesterday night. I did not anticipate enough, my bad. I have taken in consideration your great inputs for maskToBounds and systemFont.