12.3. Setting up the ViewController with TableView
//
// ViewController.swift
// App12
//
// Created by Sakib Miazi on 6/1/23.
//
import UIKit
class ViewController: UIViewController {
let mainScreen = MainScreenView()
override func loadView() {
view = mainScreen
}
override func viewDidLoad() {
super.viewDidLoad()
title = "My Contacts"
//MARK: Make the titles look large...
navigationController?.navigationBar.prefersLargeTitles = true
//MARK: Put the floating button above all the views...
view.bringSubviewToFront(mainScreen.floatingButtonAddContact)
}
}
Patching the Table View

Adopting TableView protocols

Last updated