29Apr/1117
CustomBadge 2.0 – Retina Ready, Scalable, light reflex, …
Quick: What is CustomBadge? CustomBadge is an Objective-C based component to create customized Badges for any given View.
Because of the increased demand I decided to refine my little iOS-Component CustomBadge.
Meanwhile I have an iPhone with Retina Display for quite a long time and
support for the high-resolution Display was the most wanted feature.
CustomBadge 2.0 is now satisfying this request.
In addition CustomBadges are now scalable and you can add this well-known
Apple-like light reflex on the top.
Here you'll find an easy to understand example project.
PS: Of course ... CustomBadge is still for free and always will be.
Here is an example hi-res screenshot:














June 24th, 2011 - 09:47
Hey, thanks for this awesome class.
You should setUserInteractionEnabled:NO as default for the customBadge, as it is now the badge blocks an underlying button.
Cheers
mbogh
July 12th, 2011 - 13:12
I’d like to leave the choice to the developer. Maybe somebody wants to use the CustomBadge-Object as the “Button”.
June 28th, 2011 - 21:53
Thank you very much, really a great work. Why don’t you put the code on GitHub?
July 6th, 2011 - 23:09
Thanks for the advice! I think about it.
June 30th, 2011 - 14:46
Hi! thank you for the class its incredible!
I need add the badge to an UIButton, is this possible?
Thank you!
July 6th, 2011 - 23:09
Yes. CustomBadge is an UIView so you can add it as Subview to an UIButton.
July 6th, 2011 - 21:23
Thanks. Awesome. Just a tip (which you may already know)… In the sample code, you use [customBadge setFrame:...] to position the badge. Since the height and width aren’t changing, you can simplify and just use [customBadge setCenter:...]
July 11th, 2011 - 21:26
Can’t wait to try it! …but I don’t see the download link?
July 12th, 2011 - 12:53
The Link is here.
August 3rd, 2011 - 01:15
Thanks a lot for sharing such awesome component!
August 3rd, 2011 - 12:31
My pleasure.
October 20th, 2011 - 08:08
Thank you~~I’m looking for this and you helped me to solve my problem~
October 20th, 2011 - 08:09
Good.
October 26th, 2011 - 06:51
will this be accepted on the Apple App Store?
October 26th, 2011 - 08:30
Yes, because it’s nothing but pure Quartz (CoreGraphics)
June 22nd, 2012 - 10:50
Nice! Is there a way to add it to the button instead of adding it to the view?
June 22nd, 2012 - 10:54
An UIButton is inherited from an UIView.
Apple Documentation
[yourBtn addSubview:yourCustomBadge];