Answer the question
In order to leave comments, you need to log in
How to correctly implement "Loading/Content/Error/Empty" controller states in iOS?
Let's say we have a UITableViewController controller added to the Storyboard. In the controller implementation, you can load the data and display it in the cells of this list. But, showing emptiness during data loading, and even more so if an error occurred or there is no data, in a real application, is not an option at all.
Actually, the question is, by what principle or pattern are the various states of the scene implemented:
Answer the question
In order to leave comments, you need to log in
I found a wonderful StatefulViewController project that solves exactly this problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question