CS 392 Fall 2014

Lectures

Week 16

Project presentations.

Week 15

No lecture due to new year’s eve.

Week 14

Project progress evaluation.

Week 13

Topics:
Core location, MapKit (by Gun Makinabakan)

Code:
Location Experiment

Week 12

No lecture

Week 11

Topics:
Animation (by Gun Makinabakan)

Code:
Picnic Animation

Week 10

Topics:
Closures, Grand Central Dispatch, NSTimer, NSRunLoop, Collections (by Gun Makinabakan)

Tasks:

Code:
Doviz app with GCD, search, and sort

Week 9

Topics:
Persistence using NSUserDefaults, Gesture recognizers

Tasks:

Code:
UserDefaults Experiment
TicTacToe with Swipe Gesture

Week 8

Topics:
UICollectionView, JSON, refresh control.

Tasks:

Code:
Foreign Currency Exchange Rates
Faculty Facebook with Collection View

Week 7

Topics:
Segues, multiple MVCs, navigation.

Tasks:

Code:
SegueExperiment
Faculty Facebook with Navigation

Week 6

No lecture due to Republic’s Day.


Note:
After upgrading to Xcode 6.1, the code I published gives compilation errors. (The API is actively updated.) Do the following modifications to fix the projects:

Faculty Facebook with UITableView:

  • Change cell.textLabel! to cell.textLabel. The textLabel property of UITableViewCell is no longer optional.
  • Change the the line that instantiates a UIImage and assigns to facultyMemberImage.image to the following:

    if let nsurl = NSURL(string: url) {
      if let nsdata = NSData(contentsOfURL: nsurl) {
        facultyMemberImage.image = UIImage(data: nsdata)
      }
    }
    

    This is needed because NSURL and NSData initializers are now Failable Initializers.

Faculty Facebook with UIPickerView:
Do the second item above.


Week 5

Topics:
Protocols, delegate, data source, UIPickerView, UIImage from NSURL, UITableView, reusing table cells

Tasks:

Code:
UIPickerViewExperiment
Faculty Facebook with UIPickerView
Faculty Facebook with UITableView

Week 4

Topic:
Auto Layout (by Gun Makinabakan)

Tasks:

Week 3

Topics:

MVC, Outlet collections, tag property, private functions

Tasks:

Code:
TicTacToe app

Week 2

Topics:

  • Garbage collection vs. Reference counting vs. Automatic reference counting
  • MVC
  • Actions, outlets, random number generation

Tasks:

Code:
SimpleDie app

Week 1

Topics:
Intro to the Mac environment and the Swift language

Tasks: