0

The Tab bar controller with 5 tabs

Referring above image: 1. The issue is to set Number inside circle of Tasks image in "Tasks tab". 2. Is it possible to set number i.e UILabel at given location inside tab bar item?

Thank You.

Updated: This is what i wanted and got using badge value: enter image description here

[[[[[self tabBarController] tabBar] items] objectAtIndex:1] setBadgeValue:10 ]];

To get badge value to application value:

enter image description here

[UIApplication sharedApplication].applicationIconBadgeNumber = 10;

Yogesh Lolusare
  • 2,162
  • 1
  • 24
  • 35

1 Answers1

2

That design element is called a 'badge'. You set a tab bar item's badge by setting its badgeValue property to a suitable number.

Check the docs for UITabBarItem for more information on the badgeValue property.

duci9y
  • 4,128
  • 3
  • 26
  • 42