Welcome to the Treehouse Community
Looking to learn something new?
Neil Shweky5,022 Points
I can't figure out this code challenge!
The tabs are stored in an array named tabBarItems (line 9). Declare a UITabBarItem variable named tab and set it from tabBarItems. Use the selectedIndex we just set as the index for the tab you get from the tabBarItems array.
Hi Neil, I think this should do it.
UITabBarItem *tab = tabBarItems[self.tabBarController.selectedIndex];