I have a an app that has a UITabBarController
.
What I would like to achieve, is that the first ViewController included in the TabBar displays a TableView if there are items in the array property (loaded from CoreData), or a UIImageView
(with more information about how to add items) if not.
If the user goes to a different TabBarItem, and comes back to the first TabBarItem the array could have been populated. So it should change what is displayed accordingly. Could somebody post a programatic snippet to achieve this. I have tried several things, and none have worked properly.