SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Sequence for iPhone
Development
Divanshu Arora
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.

Weitere ähnliche Inhalte

Ähnlich wie iPhone Development

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
 

Ähnlich wie iPhone Development (20)

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
 
Exploring the Xcode Build Process
Exploring the Xcode Build Process Exploring the Xcode Build Process
Exploring the Xcode Build Process
 
Introduction to xcode
Introduction to xcodeIntroduction to xcode
Introduction to xcode
 
Xamarin.Mac Introduction
Xamarin.Mac IntroductionXamarin.Mac Introduction
Xamarin.Mac Introduction
 
Mobile Worshop Lab guide
Mobile Worshop Lab guideMobile Worshop Lab guide
Mobile Worshop Lab guide
 
My Very First Zf App Part One
My Very First Zf App   Part OneMy Very First Zf App   Part One
My Very First Zf App Part One
 
Android app development: a top-down perspective
Android app development: a top-down perspectiveAndroid app development: a top-down perspective
Android app development: a top-down perspective
 
Web works hol
Web works holWeb works hol
Web works hol
 
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
 
Lec02
Lec02Lec02
Lec02
 
Introduction to Android Development and Security
Introduction to Android Development and SecurityIntroduction to Android Development and Security
Introduction to Android Development and Security
 
Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2
 
Передача состояния с iPhone на Apple Watch
Передача состояния с iPhone на Apple WatchПередача состояния с iPhone на Apple Watch
Передача состояния с iPhone на Apple Watch
 
201010 SPLASH Tutorial
201010 SPLASH Tutorial201010 SPLASH Tutorial
201010 SPLASH Tutorial
 
Design pattern-presentation
Design pattern-presentationDesign pattern-presentation
Design pattern-presentation
 
Creating a Symfony Ecommerce App
Creating a Symfony Ecommerce AppCreating a Symfony Ecommerce App
Creating a Symfony Ecommerce App
 
200910 - iPhone at OOPSLA
200910 - iPhone at OOPSLA200910 - iPhone at OOPSLA
200910 - iPhone at OOPSLA
 
Xamarin.iOS中引用第三方Objective-C的Class Library
Xamarin.iOS中引用第三方Objective-C的Class LibraryXamarin.iOS中引用第三方Objective-C的Class Library
Xamarin.iOS中引用第三方Objective-C的Class Library
 

Kürzlich hochgeladen

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
 

Kürzlich hochgeladen (20)

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
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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?
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
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...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
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
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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
 

iPhone Development

  • 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.