Question: what is nsurlsession in swift?
Answer: Learn NSURLSession using Swift Part 1 - HTTP/HTTPS GET. “In iOS7 and later or OS X v10.9 and later, NSURLSession is the preferred API for new code that performs URL requests” — Apple. Usually, when an iOS developers wants to retrieve contents from certain URL, they choose to use NSURLConnection.