Session 2

The Anatomy of an Application

Session Materials

Resources

Assignment

Assignment URL right here

In this assignment you will create an iPhone application with a single UIViewController and several standard UIKit objects. A UIScrollView will be used to display a UIButton and UIImageView on each “page”. This assignment will combine storyboard and programmatic interface design.

Project Setup

Sounds and Images

Model

let name: String
let species: String
let age: Int
let image: UIImage
let soundPath: String
Animal: name = ?, species = ?, age = ?

View Controller

Views

Tip: Note that the `contentSize` is an example of a property can only be modified programmatically (not in Interface Builder).



Functionality

Tip: Calculating the correct text and alpha for the label can be accomplished in about four lines of code, although you may use more lines if you like.



App Icon

Grading

We will add your grade to your repository in a branch named “Grade.”