SlideShare una empresa de Scribd logo
1 de 14
Sequence for iPhone
   Development
Design for Mobile Devices
        Fall 2010
 University of Baltimore
Create a Project
• XCode:
• File…New 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:
  – File…New 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
   – Finder…Library … 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.   Create a project in Xcode.
2.   Create the user interface in Interface Builder (IB).
3.   Create the controller class in Xcode.
4.   Create the instance variables in Xcode.
5.   Create the Controller Object in IB.
6.   Connect Objects to Instance Variables in IB.
7.   Write source code in Xcode.
8.   Test in iPhone Simulator.
9.   Create app icon.

Más contenido relacionado

Destacado (15)

Lingkaran
LingkaranLingkaran
Lingkaran
 
UNICEF Digital Citizenship and Safety- South Africa presentation
UNICEF Digital Citizenship and Safety- South Africa presentationUNICEF Digital Citizenship and Safety- South Africa presentation
UNICEF Digital Citizenship and Safety- South Africa presentation
 
UVR ASSOCIATES
UVR ASSOCIATESUVR ASSOCIATES
UVR ASSOCIATES
 
Workshop Indesit - Scenario 2
Workshop Indesit - Scenario 2Workshop Indesit - Scenario 2
Workshop Indesit - Scenario 2
 
Cooping with nerves
Cooping with nervesCooping with nerves
Cooping with nerves
 
P-Seminar_Ludwig Isert
P-Seminar_Ludwig IsertP-Seminar_Ludwig Isert
P-Seminar_Ludwig Isert
 
5. susret 3..11.2011. isusov odnos prema farizejima, saducejima, zelotima
5. susret 3..11.2011.   isusov odnos prema farizejima, saducejima, zelotima5. susret 3..11.2011.   isusov odnos prema farizejima, saducejima, zelotima
5. susret 3..11.2011. isusov odnos prema farizejima, saducejima, zelotima
 
Drawing and printmaking
Drawing and printmaking Drawing and printmaking
Drawing and printmaking
 
Turkey_Hospitality_Industry
Turkey_Hospitality_IndustryTurkey_Hospitality_Industry
Turkey_Hospitality_Industry
 
City Search
City SearchCity Search
City Search
 
Qb's.duncan.calendar 2012 falcon football
Qb's.duncan.calendar 2012 falcon footballQb's.duncan.calendar 2012 falcon football
Qb's.duncan.calendar 2012 falcon football
 
2012年1月2日 同窓会 プレゼン
2012年1月2日 同窓会 プレゼン2012年1月2日 同窓会 プレゼン
2012年1月2日 同窓会 プレゼン
 
ADV-Dartfish 2012 Business w/ Qr
ADV-Dartfish 2012 Business w/ QrADV-Dartfish 2012 Business w/ Qr
ADV-Dartfish 2012 Business w/ Qr
 
South Carolina-Liam and William
South Carolina-Liam and WilliamSouth Carolina-Liam and William
South Carolina-Liam and William
 
Quiet Moments.
Quiet Moments.Quiet Moments.
Quiet Moments.
 

Similar a 39

iPhone application development training day 1
iPhone application development training day 1iPhone application development training day 1
iPhone application development training day 1
Shyamala Prayaga
 
Introduction to xcode
Introduction to xcodeIntroduction to xcode
Introduction to xcode
Sunny Shaikh
 
Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2
Sónia
 

Similar a 39 (20)

Code camp 2011 Getting Started with IOS, Una Daly
Code camp 2011 Getting Started with IOS, Una DalyCode camp 2011 Getting Started with IOS, Una Daly
Code camp 2011 Getting Started with IOS, Una Daly
 
iPhone application development training day 1
iPhone application development training day 1iPhone application development training day 1
iPhone application development training day 1
 
Getting Started With Developing For Apple Watch
Getting Started With Developing For Apple WatchGetting Started With Developing For Apple Watch
Getting Started With Developing For Apple Watch
 
Getting Started with Developing for the Apple Watch
Getting Started with Developing for the Apple WatchGetting Started with Developing for the Apple Watch
Getting Started with Developing for the Apple Watch
 
iPhone Programming [2/17] : Introduction to iOS Programming
iPhone Programming [2/17] : Introduction to iOS ProgrammingiPhone Programming [2/17] : Introduction to iOS Programming
iPhone Programming [2/17] : Introduction to iOS Programming
 
Introduction to xcode
Introduction to xcodeIntroduction to xcode
Introduction to xcode
 
Xamarin.Mac Introduction
Xamarin.Mac IntroductionXamarin.Mac Introduction
Xamarin.Mac Introduction
 
Lec02
Lec02Lec02
Lec02
 
Introduction of Xcode
Introduction of XcodeIntroduction of Xcode
Introduction of Xcode
 
Mobile Worshop Lab guide
Mobile Worshop Lab guideMobile Worshop Lab guide
Mobile Worshop Lab guide
 
Передача состояния с iPhone на Apple Watch
Передача состояния с iPhone на Apple WatchПередача состояния с iPhone на Apple Watch
Передача состояния с iPhone на Apple Watch
 
javabeans
javabeansjavabeans
javabeans
 
201010 SPLASH Tutorial
201010 SPLASH Tutorial201010 SPLASH Tutorial
201010 SPLASH Tutorial
 
Hello world ios v1
Hello world ios v1Hello world ios v1
Hello world ios v1
 
Lec02
Lec02Lec02
Lec02
 
Web works hol
Web works holWeb works hol
Web works hol
 
Exploring the Xcode Build Process
Exploring the Xcode Build Process Exploring the Xcode Build Process
Exploring the Xcode Build Process
 
Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2
 
200910 - iPhone at OOPSLA
200910 - iPhone at OOPSLA200910 - iPhone at OOPSLA
200910 - iPhone at OOPSLA
 
Unit4wt
Unit4wtUnit4wt
Unit4wt
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

39

  • 1. Sequence for iPhone Development Design for Mobile Devices Fall 2010 University of Baltimore
  • 2. Create a Project • XCode: • File…New Project – iPhone OS – Window Based Application – Name Project File
  • 3. Create the User Interface • Interface Builder: – View MainWindow.xib – Open under Tools • Library • Inspector – Drag UI objects to the Window – Set attributes
  • 4. Create the Controller Class • XCode: – File…New 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
  • 5. Create Instance Variables • XCode: – Controller.h -> declare variables
  • 6. Create Controller Object • Interface Builder: – MainWindow.mib – Library • Drag Object to mainWindow.mib – Inspector • Choose identity tab – Change NSObject to Controller
  • 7. 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
  • 8. Write Source Methods • XCode: – Controller.m 1. awakeFromNib 2. calculateTip
  • 10. Create iPhone App Icon (1) • Clear old icons from iPhone Simulator – Finder…Library … Application Support … iPhone Simulator – Drag iPhone Simulator to trash
  • 11. Create iPhone App Icon (2) • Create a 57 x 57 .png file
  • 12. 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
  • 13. Create iPhone App Icon (4) • Add to Property list – Click on Info.plist – Enter name of icon file to plist
  • 14. Review Steps to Create an iPhone App 1. Create a project in Xcode. 2. Create the user interface in Interface Builder (IB). 3. Create the controller class in Xcode. 4. Create the instance variables in Xcode. 5. Create the Controller Object in IB. 6. Connect Objects to Instance Variables in IB. 7. Write source code in Xcode. 8. Test in iPhone Simulator. 9. Create app icon.