-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Swift Essentials (Second Edition) - Second Edition
By :
The most common way to load data from a remote network source is to use an HTTP (or HTTPS) URL of the form https://raw.githubusercontent.com/alblue/com.packtpub.swift.essentials/master/CustomViews/CustomViews/SampleTable.json.
URLs can be manipulated with the NSURL class, which comes from the Foundation module (which is transitively imported from the UIKit module). The main NSURL initializer takes a String initializer with a full URL, although other initializers exist to create relative URLs or for references to file paths.
The NSURLSession class is typically used to perform operations with URLs, and individual sessions can be created through the initializer or the standard shared session can be used. The NSURLConnection class was used in older versions of iOS and Mac OS X. References to this class can still be seen in some tutorials, or may be required if Mac OS X 10.8 or iOS 6 needs to be supported; otherwise, the NSURLSession class should be preferred.
The NSURLSession...
Change the font size
Change margin width
Change background colour