Published using Google Docs
CSSE490 Lab 1: Getting started with UIKit
Updated automatically every 5 minutes

Name: ______________________________

Lab 1: Getting started with UIKit

The purpose of this lab is give you some practice making universal apps using various UIKit objects.  The focus is on Interface Builder and learning just enough about Objective-C to manipulate the object properties.

 ______ Part A: Color Sliders

 ______ Part B: Score Keeper

 ______ Part C: Tic Tac Toe

Note: Since we have not covered interface rotation yet in the course all these apps focus on Portrait mode only.



A. Color Sliders

The purpose of this app is to learn about using IBOutlet and IBAction connections.  This project will use four UISlider objects, four passive UILabel (passive but non-static), and a UIView.  The UISlider objects will select and RGBA value for the UIView.  When a slider changes value the UIView should change color to match.  

Here is what the app will look like:

iPhone

iPad

Icon files:   Color Sliders App Icons


B. Score Keeper

The purpose of this app is get practice with Universal apps and work with some text input and output.  This app will focus on using 8 UITextViews (four names, four running totals), two UIButtons, and a UILabel.

The purpose of this app is to serve as a scorekeeper for a game, for example a card game like Hearts.  There is a text box for each player.  You enter the number of points they got that round then after you type in a score for all players you hit “Enter Round Scores” to add that round to the total.  To start a new game hit “Reset Scores”.  Since the names will be UITextView’s instead of UILabels we can make them editable.

Here is what the app will look like:

iPhone

iPad

Icon files:  Score Keeper App Icon Files


C. Tic Tac Toe

The purpose of this app is to learn more about the Model-View-Controller design principle.  However since the class has not actually covered the Objective-C language you will be working with a Model object that I made.  The Model object holds the game state information.  You will handle the View and Controller.

This game will allow you to play Tic Tac Toe.  Two players, X goes first, the game continues until someone wins, the board is full, or a New Game is started.

Here is a zip file with the images and the Model object:  TicTacToeZip

Here is what the app will look like:

iPhone

iPad

The images for this app come from the source code from Dave Mark and Jeff LaMarche’s second level iPhone Development book called simply enough, “More iPhone 3 Development”.  Since we are using their first book in the class, I figure they won’t mind use using their images.  Their Tic Tac Toe game is used as an example to demonstrate GameKit.  It’s a great book.  I highly recommend purchasing it when the iOS 4 version is released.