I have a requirement to display a table view if there are items to display, otherwise to display a splash screen which contains an image and some text.
Is it possible to display the image and text as a background for there table which is displayed when the table is empty, and otherwise is not displayed and its just the table rows?
If it is possible then is this approach “better” or “worse” than having a separate controller for the splash screen with a higher level controller decided whether to use the splash controller or table controller depending upon the number of items?
You could set up a view controller that contains the splash screen/text as the background with the table view positioned on top of the splash screen. Then when you load the data for the table view, if there is no data, hide the table view (which will show the splashscreen). If there is data, size the table view so it completely covers the splash screen/text.