Assignment 1 Walkthrough

Assignment 1 Walkthrough - CS193P IPHONE APPLICATION...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Assignment I Walkthrough Objective Reproduce the demonstration (building a calculator) given in class. Materials By this point, you should have been sent an invitation to your sunet e-mail to join the iPhone University Developer Program. You must accept this invitation and download the iPhone SDK. It is critical that you get the SDK downloaded and functioning as early as possible in the week so that if you have problems you will have a chance to talk to the TA’s and get help. If you wait until the weekend (or later!) and you cannot get the SDK downloaded and installed, it is unlikely you’ll Fnish this assignment on time. Brief If you were in class on Wednesday and saw this walkthrough, you may feel like you can get by with a much briefer version included at the end of this document. You can always refer back to the detailed one if you get lost. The devil is often in the details, but sometimes you have to learn from the devil in order to be good. CS193P IPHONE APPLICATION DEVELOPMENT SPRING 2010 PAGE 1 OF 35 ASSIGNMENT 1: CALCULATOR
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Detailed Walkthrough Part I: Create a new Project in Xcode. 1. Launch /Developer/Applications/Xcode . 2. From the Splash screen that appears, choose “Create a new Xcode project” or simply choose the “New Project . ..” menu item from the File menu. The following window will appear: CS193P IPHONE APPLICATION DEVELOPMENT SPRING 2010 PAGE 2 OF 35 ASSIGNMENT 1: CALCULATOR
Background image of page 2
3. Click on and then . 4. In the fle chooser that is presented, do the Following: a. navigate to a place where you want to keep all oF your application projects For the quarter (a good place is ~/Developer/CS193p where ~ means “your home directory”) b. type the name “Calculator” (For the rest oF the walk-through to make sense to you, I highly recommend calling this project “Calculator”) c. click 5. You have successFully created your frst iPhone project! The Following window will appear: CS193P IPHONE APPLICATION DEVELOPMENT SPRING 2010 PAGE 3 OF 35 ASSIGNMENT 1: CALCULATOR
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6. You can even run your application at this point by clicking . Nothing will appear but a blank screen in the iPhone Simulator. If this works, you have likely successfully installed the SDK. If it does not, it might be time to check with a TA! CS193P IPHONE APPLICATION DEVELOPMENT SPRING 2010 PAGE 4 OF 35 ASSIGNMENT 1: CALCULATOR
Background image of page 4
Notice in the upper left hand corner, there is a tree view. This is where all the Fles in your application are managed. Click on the little folders to expand them as shown. Note that in the Classes section there are .h and .m Fles for two different classes: CalculatorAppDelegate and CalculatorViewController . Don’t worry about CalculatorAppDelegate for this assignment. The second one, CalculatorViewController , is our controller. We just need our Model. Let’s create a new class called CalculatorBrain for that. CS193P IPHONE APPLICATION DEVELOPMENT
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/15/2011 for the course CS 193P taught by Professor Evandoll during the Spring '09 term at Stanford.

Page1 / 35

Assignment 1 Walkthrough - CS193P IPHONE APPLICATION...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online