My app just got denied approval from the App Store. Here is what Apple said:
"The application works fine when connected to the Internet, however, when no Internet access is available (for example, in Airplane Mode), the application crashes upon opening. Instead of closing by crashing, the application should handle the absence of network access with an error message. The crash logs are attached for your inspection."
How do I detect no internet and then throw an error message up? I have never done anything like that before. Some sample code would be nice. Thanks!
Ethan
"The application works fine when connected to the Internet, however, when no Internet access is available (for example, in Airplane Mode), the application crashes upon opening. Instead of closing by crashing, the application should handle the absence of network access with an error message. The crash logs are attached for your inspection."
How do I detect no internet and then throw an error message up? I have never done anything like that before. Some sample code would be nice. Thanks!
Ethan