There is an updated version of this course available, created for Swift 5.2, iOS 13, Xcode 11. View Latest Version
Pro

Networking With NSURLSession

May 16 2016 · Video Course (1 hr, 18 mins) · Intermediate

In today’s connected environment, networking is a foundational part of most apps. With the latest Apple frameworks, you can easily handle networking in your app without third party frameworks. But even if you use one of the popular frameworks for networking in your app, it’s important to know how the code works. In this video series, you’ll learn about NSURLSession, how to configure it, and how to create NSURLSessionTask objects to manage a network request. You’ll learn how to communicate with the NSURLSession system by passing closures to the tasks or by using delegate methods and the advantages and disadvantages of each. While not a strict prerequisite, it will be helpful to understand how concurrency works in iOS. If you’re not familiar with this topic, check out the Introducing Concurrency video series.

5/5 1 Rating

Version

  • Swift 2, iOS 9, Xcode 7

Introduction

2:58 Free

Find out what's covered in our Networking With NSURLSession video tutorial series.

1

Learn about NSURLSession and how to configure it.

2

Learn about NSURL, NSURLRequest, and NSURLResponse and how these classes are used in the process of a network request.

3

Learn how NSURLSessionTask has several subclasses that do the work of the network requests.

4

Learn how the NSURLSession system uses either delegate methods or closures to communicate progress and completion.

5

Learn how NSURLSession handles threading and how to control it if necessary.

6

Conclusion

2:27

Review what you learned in our Networking with NSURLSession video tutorial series and find out where to go from here.

7

Contributors

Comments