Lessons learned from eaGeier #1

Display a Message when a Table is empty

When the eaGeier is opened the first time and there is no data available for display in the tables, it would be nice to display an appropriate message instead an empty table.

An idea was to adjust numberOfSectionsInTableView:, tableView:numberOfRowsInSection: and tableView:cellForRowAtIndexPath: accordingly. However as NSFetchedResultsController is used to populate the table with Core Data and it monitors the table closely the manipulation of the table outside its scope was not easily possible.

Instead I added an sub view on top of the table view displaying the empty-table message. To prevent showing it while data is still loading, I used a delayed animation to present the sub view.

eaGeier – empty table message
FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Leave a Reply

Your email address will not be published.