Managing Network Interaction
Overview/Description
Target Audience
Prerequisites
Expected Duration
Lesson Objectives
Course Number
Expertise Level
Overview/Description
Defensive programming in iOS has to do with using coding practices and techniques to create apps that are reliable, predictable, and resilient. This course will teach you about methods and best practices for interacting safely and easily with the Internet from within an iOS app.
Target Audience
iOS developers who have experience creating apps using the Objective-C and Swift languages, and who are interested in learning to employ defensive programming techniques for iOS apps.
Prerequisites
None
Expected Duration (hours)
2.2
Lesson Objectives Managing Network Interaction
start the course
create a TCP client connection from an iOS app
send and receive data over a TCP connection in an iOS app
determine when an iOS app can and cannot access the Internet
determine when an iOS app can and cannot reach a specific IP address
determine when an iOS app can and cannot access the Internet
install and configure the network link conditioner to be able to test iOS apps in different connection conditions
use CF functions to encode URLs
use CF functions to decode URLs
use NSURLConnection to make synchronous and asynchronous network calls
use NSURLConnection to make asynchronous network calls without using custom delegates
create and apply a configuration object to an NSURLSession instance
request a URL in a simple manner using NSURLSession and system delegates
request a URL in a flexible manner using NSURLSession and custom delegates
stop script execution in any HTML loaded into a WebView
disallow Internet traffic over cellular connections in an iOS app
capture and handle redirect responses from a server
use NSURLSession to reliably download and save files in an iOS app
use NSURLSession to handle users stopping and starting download operations
use NSURLSession to handle downloads that fail
use NSURLSession to upload files to a web server
use common techniques for managing network interaction
Course Number: sd_dpio_a02_it_enus
Expertise Level
Intermediate