Let's Delegate -- huh?
AddBirthdayViewController.swift protocol AddBirthdayViewControllerDelegate { func addBirthdayViewController(_ addBirthdayViewController:...
Section & Row
Let's pair and complete the UI design BirthdaysTableViewController: UITableViewController { var birthdays = [Birthday]() let...
Happy New Year and Welcome Back...
Let's review and create a birthday view, @IBOutlet, @IBAction, more classes and objects... // // ViewController.swift // ...
Let's Add Life to the Buttons
// 1. change name here class AddBirthdayViewController: UIViewController { @IBOutlet var firstNameTextField: UITextField! @IBOutlet var...
Birthday Tracker - Let's Create Some Views
View = Things that you see on the screen View Controller = Contains Swift code to control the view 1. Create a single view project 2. App...
Review Class and Inheritance. Let's Struck!
== Let's review class, super class, sub-class == class Vehicle { var type: String var wheel: Int var color: String var door: Int init() {...
Class and Inheritance
Helper method = method inside the class - Let's create ordinalAge() to return correct ordinal number - will be called from func...
My Own Data Type & Code Cake
- Class: a package contains data and functions / blueprint creating an object. - We use class to create objects. - What are objects? -...
More Functions Anyone?
Function with multiple parameters: func invite(guest: String, rsvp: Bool) { print("Dear \(guest), \n") if rsvp { print("See you...
My First Swift Function
- What is a function? Block of code that you use again and again. - What is input parameters? - What is an argument? Let's create a...