We're new to IOS programming. We have a simple app that builds a table view using JSON data collected from an API we made. When there is no network connection, the app crashes of course, because all the UITableViewController delegate methods are working with an empty array.
Is there a simple method provided, that we can use to prevent the app from launching without a network connection, and present some nice alert to the user about this issue?