Home      Labs      Publications      People      Tools   

From CAGT

CS211 iPhone Programming Course Wiki - Assignments

Weekly Programming Assignments.

Contents


Week of May 18-20

1. Create a first program that includes a UILabel showing a functioning clock.

2. Create a stopwatch program. It should have three buttons, start, stop, reset and a clock. The clock should show hours minutes, seconds, and hundreths of a second. The view should begin with the start button highlighted and enabled and the other buttons neither highlighted nor enabled. Pressing start should start or restart the clock, disable and unhighlight the start button, and enable and highlight the stop button. Pressing stop should stop the clock, disable and unhighlight the stop button, and enable and highlight the stop and reset buttons. Pressing reset should reset the clock to zero, disable and unhighlight the reset button, and enable and highlight the start button.

3. Create a timer program. It should have one start/stop button, one picker, and one clock. The clock should show days, hours, minutes, and seconds and count down. The view should begin with the start button and the picker. Use the picker to set the amount of time to count down. Use the start button to set the clock with the desired time and to start the countdown. It's label should change to stop when the clock starts. Use the stop button to stop the clock and reset it to zero. Make your timer do something of your choice when time is up.

Week of May 25-27

Create a program that involves multiviews.

The main view should contain a grid of subviews which can animate and flip around to reveal a front and back view. The front and back views should be contained in a "container" view that sits above the rootview background. Examples suggested in class are:

Lights Out

Old Maid

The Game of Life

The background of the main view should be visible behind the flipping doors.

Week of June 1-3

Continue multiviews project.

Week of June 8-10

Start tableview and navigation controller project. Program must have three levels of views. The first two levels must be tableviews. The third level can be something else, perhaps an imageview. User must be able to navigate up and down the levels.

Week of June 15-17

Saving data. Modify the timer and stopwatch programs.

  • The stopwatch program (which counts up) must, if the app is turned off, start up again where it should be in real time. That is, if the stopwatch is at 5 minutes and the app is turned off for 30 seconds, it should start up again at 5 minutes and 30 seconds. It should always reflect real elapsed time.
  • The timer program (which counts down) must, if the app is turned off, either (your choice)
    • 1) reflect real elapsed time, that is, if the timer is at 5 minutes and the app is turned off for 30 seconds, it should start up again at 4 minutes and 30 seconds;
    • 2) pick up where it left off, that is, if the timer is at 5 minutes and the app is turned off for 30 seconds, it should start up again at 5 minutes.

Week of June 22-24

Final Project. Student's choice.

Protein Engineering