Created
March 11, 2016 11:13
-
-
Save ivanbruel/837a2baa3729bf3cecfc to your computer and use it in GitHub Desktop.
AnimalViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AnimalViewController: UIViewController { | |
// Model Object | |
var animal: Animal | |
// View Object | |
var imageView: UIImageView | |
override func viewDidLoad() { | |
// Maps Model into a View | |
imageView.image = animal.image | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment