0% found this document useful (0 votes)
21 views14 pages

Sequence For Iphone Development: Design For Mobile Devices Fall 2010 University of Baltimore

This document provides steps for creating an iPhone application using Xcode and Interface Builder: 1. Create a project in Xcode and define the user interface using Interface Builder. 2. Create a controller class in Xcode to manage the user interface and declare instance variables to connect interface objects. 3. Connect the interface objects to the instance variables using Interface Builder and write source code methods to run the application.

Uploaded by

Rommel Doji
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views14 pages

Sequence For Iphone Development: Design For Mobile Devices Fall 2010 University of Baltimore

This document provides steps for creating an iPhone application using Xcode and Interface Builder: 1. Create a project in Xcode and define the user interface using Interface Builder. 2. Create a controller class in Xcode to manage the user interface and declare instance variables to connect interface objects. 3. Connect the interface objects to the instance variables using Interface Builder and write source code methods to run the application.

Uploaded by

Rommel Doji
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 14

Sequence for iPhone Development

Design for Mobile Devices Fall 2010 University of Baltimore

Create a Project
XCode: FileNew Project
iPhone OS Window Based Application Name Project File

Create the User Interface


Interface Builder:
View MainWindow.xib Open under Tools
Library Inspector

Drag UI objects to the Window Set attributes

Create the Controller Class


XCode:
FileNew File Class: Cocoa Touch Class Subclass: NSObject
Two file are created: Controller.h -> holds instance variables Controller.m -> source file of methods to run App

Create Instance Variables


XCode:
Controller.h -> declare variables

Create Controller Object


Interface Builder:
MainWindow.mib Library
Drag Object to mainWindow.mib

Inspector
Choose identity tab
Change NSObject to Controller

Connect Objects to Instance Variables


Interface Builder:
MainWindow.xib Window Inspector
Click on connections tab
Connect Outlets (variables) to Objects (fields, etc) Connect Actions to Events

Use Simulator to view actions no results yet

Write Source Methods


XCode:
Controller.m
1. awakeFromNib 2. calculateTip

Run iPhone Simulator

Create iPhone App Icon (1)


Clear old icons from iPhone Simulator
FinderLibrary Application Support iPhone Simulator Drag iPhone Simulator to trash

Create iPhone App Icon (2)


Create a 57 x 57 .png file

Create iPhone App Icon (3)


Save file to Xcode Resources folder
Open Finder, Locate .png file Open Xcode Resources folder Drag .png file to Resources file. A dialog box pops up check Copy and Click Add

Create iPhone App Icon (4)


Add to Property list
Click on Info.plist Enter name of icon file to plist

Review Steps to Create an iPhone App


1. 2. 3. 4. 5. 6. 7. 8. 9. Create a project in Xcode. Create the user interface in Interface Builder (IB). Create the controller class in Xcode. Create the instance variables in Xcode. Create the Controller Object in IB. Connect Objects to Instance Variables in IB. Write source code in Xcode. Test in iPhone Simulator. Create app icon.

You might also like