I am a begginer using Swift.
In the example I am following from the book ' iOS 14 Programming for Beginners', the instructions tell me to create a folder called Location and as sub folders create 2 other folders called Model and View. It then instructs me to right click on Location, new file (Cocoa Touch Class) and name the swift file LocationViewController and create the file.
According to the book, it should contain the following override function:
Here is the file that is produced when I create the Cocoa Touch Class, where the above override is missing.
As this is generated by Cocoa Touch, I can't see why this is missing?
Can anybody explain why this code is missing?
In the example I am following from the book ' iOS 14 Programming for Beginners', the instructions tell me to create a folder called Location and as sub folders create 2 other folders called Model and View. It then instructs me to right click on Location, new file (Cocoa Touch Class) and name the swift file LocationViewController and create the file.
According to the book, it should contain the following override function:
Code Block override func viewDidLoad() { super.viewDidLoad() }
Here is the file that is produced when I create the Cocoa Touch Class, where the above override is missing.
Code Block l // // LocationViewController.swift // LetsEat2 // // Created by Tony Hudson on 17/03/2021. // import UIKit class LocationViewController: UICollectionViewCell { }
As this is generated by Cocoa Touch, I can't see why this is missing?
Can anybody explain why this code is missing?