tags:

views:

392

answers:

2

Hi

I am developing iphone application, I have a home page, with buttons (icons), I have an icon for notifications, I want to display a badge number on it to determine how many new notifications user has. How I can do that for UIButton? I checked the SDK and found only UITabBarItem has badge value.

A: 

I found this helpful: http://wiki.github.com/tmdvs/TDBadgedCell/using-the-class

I used it to create my own badged button.

Noura
A: 

Hi Noura,

I'm a new iPhone programmer. I'm looking to develop pretty similar to what you have done (home page with buttons (icons)) and want to set the badge number for the button.

I've implemented the home screen with icons (not a good implementation i have lot of paint issue to resolve yet). Looked at the link you provided for the badge number display. Honestly I have no idea how you managed to do that from the TDBadgedCell sample.

Can you please post your sample project which does populate the home screen with icons (image buttons) which is also capable of showing the badge number?

If you could do that, it will be a great help to me and probably 1000 other beginners.

Thank you.

Athma

Athma