1

I tries this code but the badge is not showing up

tabBarController?.tabBar.Item![3].badgeValue = "3"

I added this code to my TabBarController class Is this the right way to add it?

user3126427
  • 855
  • 2
  • 14
  • 29

1 Answers1

1

Your code should be like this : self.tabBar.Item![3].badgeValue ="3" because it seems to be a subclass.

Tarvo Mäesepp
  • 4,477
  • 3
  • 44
  • 92