Changing self.view depending on size of array
<p>I have a an app that has a <code>UITabBarController</code>.
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 <code>UIImageView</code> (with more information about how to add items) if not.</p>

<p>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.</p>
