spaulus.com iOS Developer Blog by Sascha Paulus

22Sep/106

Create a custom iPhone / iPad Badge

A badge is a beautiful indicator for unread news, updates or similar stuff.
Badge? You know ... the nice red circle with white text that tells you, there is an
 update
in the AppStore or you have new messages, …

 :)

Recently, I needed a little badge in one of my apps, but unfortunatly I found
no class 
in the iPhone SDK for it. The web told me there are 1000 ways to create a badge
but I recognized --- Rendering with Quartz is the best way to do it.

After a few hours I made a little class to create a flexible badge with a given
text for any kind of view. My first thought was, I want to make the class public,
because I could not be the only one with this problem.

Attention: There is an Update for this class available.
Here you'll find all necessary information.
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)
Comments (6) Trackbacks (0)
  1. Very very useful. Nice work

  2. I appreciate your sharing!
    Nice work

  3. So genious


Leave a comment


No trackbacks yet.