3

My App have Tab bar Controller, Which have 4 Tab bar items. I need to add one more tab bar item as 5th, is it possible to add new item as programmatically.

Ketan Parmar
  • 27,092
  • 9
  • 50
  • 75
Kavin Kumar Arumugam
  • 1,792
  • 3
  • 28
  • 47

1 Answers1

4

In viewDidload of your first tab(viewController), you can do something like,

   self.tabBarController?.viewControllers?.append(viewController)

here viewController is your 5th tab!

Ketan Parmar
  • 27,092
  • 9
  • 50
  • 75