April 2020
Intermediate to advanced
528 pages
15h 40m
English
To display the information for the selected Item, you will need to create a new UIViewController subclass.
Create a new Swift file and name it DetailViewController. Open DetailViewController.swift and declare a new UIViewController subclass named DetailViewController.
Listing 11.1 Creating the DetailViewController class (DetailViewController.swift)
import Foundationimport UIKit class DetailViewController: UIViewController { }
Because you need to be able to access the subviews you created during runtime, DetailViewController needs outlets for them. The plan is to add four new outlets to DetailViewController and then make the connections. In previous exercises, you did this in two distinct steps: ...
Read now
Unlock full access