ios - What is the NSURLSession in general? -
what nsurlsession? connection website or server?
i confused kind of concept.
you can refer apple documentation that. refer apple reference guide
the nsurlsession class , related classes provide api downloading content. api provides rich set of delegate methods supporting authentication , gives app ability perform background downloads when app not running or, in ios, while app suspended.
with nsurlsession api, app creates 1 or more sessions, each of coordinates group of related data transfer tasks. example, if writing web browser, app might create 1 session per tab or window, or 1 session interactive use , session background downloads. within each session, app adds series of tasks, each of represents request specific url (following http redirects if necessary).
Comments
Post a Comment