Swift 3: Twitter - Handling Network and JSON Errors (Ep 14)

Profile Picture
- Published on Feb 22, 2017馃審 Public

Today, let's discuss Network Errors and how to modify our completion handler to notify us of them. The most important error to handle when dealing with network calls is the 404 page not found error. This can commonly occur if you do not have connection to the internet or if the endpoint is not responding. We'll look at a solution to present an error message in the UI when we encounter this error. Finally, we'll examine how invalid json will crash our app and then I'll go into detail on how to apply an easy fix. Enjoy. Facebook Group https://www.facebook.com/groups/12406... iOS Basic Training Course https://www.letsbuildthatapp.com/basi... Completed Source Code https://www.letsbuildthatapp.com/cour... Follow me on Twitter: https://twitter.com/buildthatapp