0

I have a UITabBarController setup and everything is working as intended. However, I also have enough items to allow for a "More" tab to display.

When I "Edit" the items, I can replace all 4 tab items, but, but I'd like to make the first item not rearrangeable or replaceable. Like the "More" tab item is -- leaving only 3 items editable.

Any ideas how to do that?

Mavro
  • 571
  • 8
  • 19

1 Answers1

2

Set the customizableViewControllers to an array of view controllers that does not include the first view controller.

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • Perfect, thanks! This would be a bit cleaner if I created the views programmatically... but given I used storyboard, is there a way to programmatically access the list of Storyboard linked viewcontrollers? – Mavro Oct 17 '18 at 15:41
  • Yes, they are the tab bar controller's `viewControllers`. – matt Oct 17 '18 at 15:42