ios - How do I update the badge number for uitabbaritem when a new push notification arrives -


how can update badge specific uitabbaritem when new push notification arrives? example activity tab in instagram

you should use following code:

[[[[[self tabbarcontroller] tabbar] items]                 objectatindex:tabindex] setbadgevalue:badgevaluestring]; 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -