iOS Development
Introduction
Gonzalo Parra
Friday 22 October 2010
Background
Friday 22 October 2010
iOS?
• iPod Touch
• iPhone
• iPad
Friday 22 October 2010
What is the iPhone?
• accelerometer
• gyroscophe
• GPS
• Digital compass
• multi-touch display
• sensors (proximity, ambie...
What is the iPhone?
Based on a work at cs193p.stanford.edu
Friday 22 October 2010
Core OS
OSX Kernel
Mach 3.0
BSD
Sockets
Security
Power Management
Keychain Access
Certificates
File System
Bonjour
iOS
Coco...
Core Services
Collections
Address Book
Networking
File Access
SQLite
Core Location
Net Services
Threading
Preferences
URL ...
Media
Core Audio
OpenAL
Audio Mixing
Audio Recording
Video Playback
JPEG, PNG, TIFF
PDF
Quartz (2D)
Core Animation
OpenGL ...
Cocoa Touch
Multi-Touch
Core Motion
View Hierarchy
Localization
Controls
Alerts
Web View
Map Kit
Image Picker
Camera
iOS
C...
Basics
Friday 22 October 2010
Components
• iOS SDK (requires an Intel Mac)
• Frameworks: Foundation, UIKit,...
• MVC
• Language: Objective-C
• Tools: XC...
MVC
St
C
Fa
Controller
MVC
Model View
It’s all about managing communication between camps
Based on a work at cs193p.stanfo...
MVC: Controller
St
C
Fal
Controller
MVC
Model View
outlet
Controllers can also talk directly to their View.
Based on a wor...
MVC:View
St
C
Fal
Controller
MVC
Model View
action
delegate
outlet
data
source
should
will did
target
count
data
at
No. Th...
MVC: Model
St
C
Fal
Controller
MVC
Model View
action
Notification
& KVO
delegate
outlet
data
source
should
will did
target
...
MVCsMVCs working together
Stanford
CS193p
Fall 2010
Based on a work at cs193p.stanford.edu
Friday 22 October 2010
Hello iPhone!
Friday 22 October 2010
Hello iPhone!
• Tools
• XCode
• Interface Builder
Friday 22 October 2010
Hello iPhone MVC
Sta
CS
Fall
Controller
MVC
Model View
action
outlet
target
Then hand out an action to the View.
myButtonP...
Hello iPhone MVC
Sta
CS
Fall
Controller
MVC
Model View
action
outlet
target
Then hand out an action to the View.
HelloiPho...
Hello iPhone MVC
Sta
CS
Fall
Controller
MVC
Model View
action
outlet
target
Then hand out an action to the View.
HelloiPho...
Hello iPhone MVC
Sta
CS
Fall
Controller
MVC
Model View
action
outlet
target
Then hand out an action to the View.
HelloiPho...
Hello iPhone MVC
Sta
CS
Fall
Controller
MVC
Model View
action
outlet
target
Then hand out an action to the View.
HelloiPho...
Hello iPhone MVC
Sta
CS
Fall
Controller
MVC
Model View
action
outlet
target
Then hand out an action to the View.
HelloiPho...
Hello iPhone!
Hands-on
Friday 22 October 2010
Calculator
• http://bit.ly/iphonecalculator
Friday 22 October 2010
MapApp (MapKit)
Friday 22 October 2010
MapApp (MapKit)
Friday 22 October 2010
Extra material
• http://developer.apple.com/iphone/
• WWW
Friday 22 October 2010
Code
• HelloiPhone: http://bit.ly/helloiphonecode
• Calculator: http://bit.ly/mume10calc
• MapApp: http://bit.ly/mume10map...
References
• CS193P: Developing Applications for iOS, Stanford
University: http://cs193p.stanford.edu/
• HelloWorld Tutori...
Upcoming SlideShare
Loading in …5
×

iOS Development Introduction

2,518 views

Published on

iOS Development Introduction for MuMe10 course @ K.U.Leuven

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,518
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
133
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

iOS Development Introduction

  1. 1. iOS Development Introduction Gonzalo Parra Friday 22 October 2010
  2. 2. Background Friday 22 October 2010
  3. 3. iOS? • iPod Touch • iPhone • iPad Friday 22 October 2010
  4. 4. What is the iPhone? • accelerometer • gyroscophe • GPS • Digital compass • multi-touch display • sensors (proximity, ambient light) • camera (photos, video) • UMTS/HSDPA, GSM/EDGE,WI-FI, Bluetooth Friday 22 October 2010
  5. 5. What is the iPhone? Based on a work at cs193p.stanford.edu Friday 22 October 2010
  6. 6. Core OS OSX Kernel Mach 3.0 BSD Sockets Security Power Management Keychain Access Certificates File System Bonjour iOS Cocoa Touch Media Core Services Core OS Based on a work at cs193p.stanford.edu Friday 22 October 2010
  7. 7. Core Services Collections Address Book Networking File Access SQLite Core Location Net Services Threading Preferences URL Utilities iOS Cocoa Touch Media Core Services Core OS Based on a work at cs193p.stanford.edu Friday 22 October 2010
  8. 8. Media Core Audio OpenAL Audio Mixing Audio Recording Video Playback JPEG, PNG, TIFF PDF Quartz (2D) Core Animation OpenGL ES iOS Cocoa Touch Media Core Services Core OS Based on a work at cs193p.stanford.edu Friday 22 October 2010
  9. 9. Cocoa Touch Multi-Touch Core Motion View Hierarchy Localization Controls Alerts Web View Map Kit Image Picker Camera iOS Cocoa Touch Media Core Services Core OS Based on a work at cs193p.stanford.edu Friday 22 October 2010
  10. 10. Basics Friday 22 October 2010
  11. 11. Components • iOS SDK (requires an Intel Mac) • Frameworks: Foundation, UIKit,... • MVC • Language: Objective-C • Tools: XCode, Interface Builder, iPhone Simulator, Instruments • Apple Developer Program Friday 22 October 2010
  12. 12. MVC St C Fa Controller MVC Model View It’s all about managing communication between camps Based on a work at cs193p.stanford.edu Friday 22 October 2010
  13. 13. MVC: Controller St C Fal Controller MVC Model View outlet Controllers can also talk directly to their View. Based on a work at cs193p.stanford.edu Friday 22 October 2010
  14. 14. MVC:View St C Fal Controller MVC Model View action delegate outlet data source should will did target count data at No. The Model is (should be) UI independent. Based on a work at cs193p.stanford.edu Friday 22 October 2010
  15. 15. MVC: Model St C Fal Controller MVC Model View action Notification & KVO delegate outlet data source should will did target count data at Now combine MVC groups to make complicated programs ... Based on a work at cs193p.stanford.edu Friday 22 October 2010
  16. 16. MVCsMVCs working together Stanford CS193p Fall 2010 Based on a work at cs193p.stanford.edu Friday 22 October 2010
  17. 17. Hello iPhone! Friday 22 October 2010
  18. 18. Hello iPhone! • Tools • XCode • Interface Builder Friday 22 October 2010
  19. 19. Hello iPhone MVC Sta CS Fall Controller MVC Model View action outlet target Then hand out an action to the View. myButtonPushed Based on a work at cs193p.stanford.edu Friday 22 October 2010
  20. 20. Hello iPhone MVC Sta CS Fall Controller MVC Model View action outlet target Then hand out an action to the View. HelloiPhoneViewController myButtonPushed Based on a work at cs193p.stanford.edu Friday 22 October 2010
  21. 21. Hello iPhone MVC Sta CS Fall Controller MVC Model View action outlet target Then hand out an action to the View. HelloiPhoneViewController UILabel myButtonPushed Based on a work at cs193p.stanford.edu Friday 22 October 2010
  22. 22. Hello iPhone MVC Sta CS Fall Controller MVC Model View action outlet target Then hand out an action to the View. HelloiPhoneViewController UILabel UIButton myButtonPushed Based on a work at cs193p.stanford.edu Friday 22 October 2010
  23. 23. Hello iPhone MVC Sta CS Fall Controller MVC Model View action outlet target Then hand out an action to the View. HelloiPhoneViewController UILabel UIButton myButtonPushed UISlider Based on a work at cs193p.stanford.edu Friday 22 October 2010
  24. 24. Hello iPhone MVC Sta CS Fall Controller MVC Model View action outlet target Then hand out an action to the View. HelloiPhoneViewController UILabel UIButton myButtonPushed X UISlider Based on a work at cs193p.stanford.edu Friday 22 October 2010
  25. 25. Hello iPhone! Hands-on Friday 22 October 2010
  26. 26. Calculator • http://bit.ly/iphonecalculator Friday 22 October 2010
  27. 27. MapApp (MapKit) Friday 22 October 2010
  28. 28. MapApp (MapKit) Friday 22 October 2010
  29. 29. Extra material • http://developer.apple.com/iphone/ • WWW Friday 22 October 2010
  30. 30. Code • HelloiPhone: http://bit.ly/helloiphonecode • Calculator: http://bit.ly/mume10calc • MapApp: http://bit.ly/mume10map Friday 22 October 2010
  31. 31. References • CS193P: Developing Applications for iOS, Stanford University: http://cs193p.stanford.edu/ • HelloWorld Tutorial: http://bit.ly/helloiphone • iPhone Programming Tutorial: http://bit.ly/crwpk0 • The Spoken Word: http://bit.ly/dcMXBK Friday 22 October 2010

×