4.2. Patching the View class with the ViewController
//
// ViewController.swift
// App4
//
import UIKit
class ViewController: UIViewController {
//MARK: initializing the First Screen View...
let firstScreen = FirstScreenView()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
}//
// ViewController.swift
// App4
//
import UIKit
class ViewController: UIViewController {
//MARK: initializing the First Screen View...
let firstScreen = FirstScreenView()
//MARK: add the view to this controller while the view is loading...
override func loadView() {
view = firstScreen
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
}
Adding the PickerView logic

Last updated