I want to put the notification in the tab bar of the app to show the number of item selected for the shopping list. Is there any way to add the notification in the tab bar of app.
+1
A:
You mean the badge? Do something like (where self
is a UIViewController
):
[[self tabBarItem] setBadgeValue:@"42"];
Dave DeLong
2010-02-16 05:50:52
A:
You can set the badgeValue property on a UITabBarItem to present the user with a small red badge on that item.
Ben Gottlieb
2010-02-16 05:51:28