It's hard to gauge without seeing your table view delegate/datasource methods, but your intuition makes sense. In this case, I can see two options:
- Add some logic to your delegate/datasource methods to properly show your loading view if the table is empty.
- Rather than add the loading view to the table view, add the loading view to the table view's superview. That way, you can ensure that the loading view is always on top of the table view.
I usually opt for the second method, because I prefer to focus my datasource and delegate methods on only the table view.
Hope this helps!