I already googled but didn't find a clear answer. When is "didFailLoadWithError" called? I want to use it to show an alert when there's no internet connection. Is that the right way?
It's for my iOS app made with Xcode and Swift.
didFailLoadWithError method will get called in the following conditions:
So the best solution to check network is to use apple
EDIT: For Swift: TUTORIAL: CHECK FOR INTERNET CONNECTION IN SWIFT