I need to have a similar functionality as shown in the image. I will have a UITabBarController and on the first view i have a TableView. Data populated to this table view will come from a remote server.
When my application is idle or when it is inactive and when there is a new set of data coming from the server, I need to display the number of new records in that “Red bubble” as shown in the image.
If you want to show badge number on the application icon, use the following code:
it will display 1 on the application icon.