SlideShare uma empresa 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.

Mais conteúdo relacionado

Destaque (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.
 

Semelhante 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
 

Semelhante 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

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 

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.