SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
IOS DEVELOPMENT
 INTRODUCTION
    Gonzalo Parra
     #mume12




     October 5, 2012
A smartphone is a mobile phone that
offers more advanced computing
     ability and connectivity than a
      contemporary feature phone.




                                       Source: LP33.TV
WHAT IS THE IPHONE?
• accelerometer

• Three-axis    gyro
• Assisted   GPS
• Digital   compass
• multi-touch    display
• sensors    (proximity, ambient light)
• camera    (photos, video)
• UMTS/HSDPA, GSM/EDGE, WI-FI, Bluetooth
IOS?
• iPod Touch

• iPhone

• iPad
WHAT IS THE IOS?




             Based on a work at cs193p.stanford.edu
iOS
                Core OS
Cocoa Touch
                OSX Kernel Power Management
   Media        Mach 3.0   Keychain Access
                BSD        Certificates
Core Services
                Sockets    File System
  Core OS       Security   Bonjour




                           Based on a work at cs193p.stanford.edu
iOS
                Core Services
Cocoa Touch
                Collections         Core Location
   Media        Address Book Net Services
                Networking          Threading
Core Services
                File Access         Preferences
  Core OS       SQLite              URL Utilities




                              Based on a work at cs193p.stanford.edu
iOS
                Media
Cocoa Touch
                Core Audio           JPEG, PNG, TIFF
   Media        OpenAL               PDF
                Audio Mixing         Quartz (2D)
Core Services
                Audio Recording Core Animation
  Core OS       Video Playback       OpenGL ES




                               Based on a work at cs193p.stanford.edu
iOS
                Cocoa Touch
Cocoa Touch
                Multi-Touch            Alerts
   Media        Core Motion            Web View
                View Hierarchy         Map Kit
Core Services
                Localization           Image Picker
  Core OS       Controls               Camera




                               Based on a work at cs193p.stanford.edu
TYPES OF DEVELOPMENT


• Native Apps

• Mobile Web Apps

• External   frameworks
NATIVE APPLICATIONS

• iOS   SDK (requires an Intel Mac)

• Language: Objective-C

• Tools: XCode

• Apple   Developer Program

 • AppStore
EXAMPLES
MOBILE WEB APPLICATIONS

• Language: HTML*, Javascript, CSS

     • Frameworks: Sencha Touch, jQueryMobile, ...

• Tools: HTML*          editor (DashCode), Safari

• Can     be displayed in “every” smartphone


 * PHP, JSP, ASP, ...
EXAMPLES
iUi: iPhone User Interface Framework
EXTERNAL PLATFORMS


• PhoneGap, Titanium,...

  • requires   iOS SDK

• Language: HTML, Javascript, CSS
NATIVE APPS DEVELOPMENT:
         BASICS
COMPONENTS
• iOS   SDK (requires an Intel Mac)

 • Frameworks: Foundation, UIKit, Core   Data, Core ...

 • Design   strategy: MVC

• Language: Objective-C

• Tools: XCode   (iOS Simulator), Instruments

• Apple   Developer Program
MVC
Model View Controller
MVC
                     MVC

                    Controller




    Model                                   View


It’s all about managing communication between camps                         St
                                                                             C
                                     Based on a work at cs193p.stanford.edu Fa
MVC: CONTROLLER
                    MVC

                   Controller
                                outlet




 Model                                          View


Controllers can also talk directly to their View.                               St
                                                                                 C
                                         Based on a work at cs193p.stanford.edu Fal
MVC: VIEW
                  MVC
                       should            target
                   will         did

                 Controller
                data
                            count
                                        outlet
                 at

                                da




                                          de
                                  ta




                                             le
                                                g
                                       so




                                                    at
                                          u                          action




                                                      e
                                              rc
                                                e

Model                                                        View


No. The Model is (should be) UI independent.                                                 St
                                                                                              C
                                                      Based on a work at cs193p.stanford.edu Fal
MVC: MODEL
                        MVC
                             should            target
                         will         did

                      Controller
                      data
                                  count
                                              outlet
                       at

                                      da




                                                de
     Notification
                                        ta




                                                   le
       & KVO




                                                      g
                                             so




                                                          at
                                                u                          action




                                                            e
                                                    rc
                                                      e

      Model                                                        View


Now combine MVC groups to make complicated programs ...                                            St
                                                                                                    C
                                                            Based on a work at cs193p.stanford.edu Fal
MVC
MVCs working together




                                            Stanford
                                             CS193p
                                            Fall 2010




                   Based on a work at cs193p.stanford.edu
OBJECTIVE-C
OBJECTIVE-C


   .h                 .m

Interface     Implementation
CLASSES




          From: “The Objective-C Programming Language”
METHODS




[myArray insertObject:anObject atIndex:0];
                            From: “The Objective-C Programming Language”
PROPERTIES

     @property BOOL flag;
.h   @property (nonatomic) NSString *nameObject;



     @synthesize flag = _flag;
.m   @synthesize nameObject = _nameObject;

                               From: “The Objective-C Programming Language”
HELLO IPHONE!
HELLO IPHONE!
HELLO IPHONE MVC
                             MVC
HelloiPhoneViewController                target

                            Controller
                                         outlet




 X
                                                                action
                                                                     myButtonPushed

     Model                                               View
                                    UISlider
                                               UILabel               UIButton

         Then hand out an action to the View.                                              Sta
                                                                                            CS
                                                  Based on a work at cs193p.stanford.edu   Fall
HELLO IPHONE!:
HANDS-ON
CALCULATOR




http://bit.ly/iphonecalculator
MVC
EXTRA MATERIAL


• http://developer.apple.com/devcenter/ios/index.action




• WWW
CODE

•   HelloiPhone: http://bit.ly/helloiphonecode


•   Calculator: http://bit.ly/mume10calc


•   MapApp: http://bit.ly/mume10map
QUESTIONS?
  THANKS!


   @gaposx
REFERENCES

•   CS193P: Developing Applications for iOS, Stanford
    University: http://cs193p.stanford.edu/
•   HelloWorld Tutorial: http://bit.ly/helloiphone
•   iPhone Programming Tutorials: http://bit.ly/crwpk0
•   Learning Objective-C: A Primer: http://bit.ly/objcpl

Mais conteúdo relacionado

Semelhante a iOS Dev Intro

Lecture 1 slides
Lecture 1 slidesLecture 1 slides
Lecture 1 slidesamarprabhu
 
Cross Platform Mobile Apps with the Ionic Framework
Cross Platform Mobile Apps with the Ionic FrameworkCross Platform Mobile Apps with the Ionic Framework
Cross Platform Mobile Apps with the Ionic FrameworkTroy Miles
 
A Journey From Objective C to Swift - Chromeinfotech
A Journey From Objective C to Swift - ChromeinfotechA Journey From Objective C to Swift - Chromeinfotech
A Journey From Objective C to Swift - ChromeinfotechChromeInfo Technologies
 
iPhone Programming in 30 minutes (?) [FTS]
iPhone Programming in 30 minutes (?) [FTS]iPhone Programming in 30 minutes (?) [FTS]
iPhone Programming in 30 minutes (?) [FTS]Diego Pizzocaro
 
Intro to c# (vs. objective c and java)
Intro to c# (vs. objective c and java)Intro to c# (vs. objective c and java)
Intro to c# (vs. objective c and java)Wes Yanaga
 
Intro to c# (vs. objective c and java)
Intro to c# (vs. objective c and java)Intro to c# (vs. objective c and java)
Intro to c# (vs. objective c and java)John Smith
 
Modern ASP.NET Webskills
Modern ASP.NET WebskillsModern ASP.NET Webskills
Modern ASP.NET WebskillsCaleb Jenkins
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobilenaral
 
Spring Framework
Spring FrameworkSpring Framework
Spring Frameworknomykk
 
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC Team
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC TeamAOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC Team
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC TeamThuy_Dang
 
I pad uicatalog_lesson02
I pad uicatalog_lesson02I pad uicatalog_lesson02
I pad uicatalog_lesson02Rich Helton
 
Android L09 - Windows Phone and iOS
Android L09 - Windows Phone and iOSAndroid L09 - Windows Phone and iOS
Android L09 - Windows Phone and iOSMohammad Shaker
 
MV(C, mvvm) in iOS and ReactiveCocoa
MV(C, mvvm) in iOS and ReactiveCocoaMV(C, mvvm) in iOS and ReactiveCocoa
MV(C, mvvm) in iOS and ReactiveCocoaYi-Shou Chen
 
Best Apple IOS Training in Chennai | Best Iphone Training in Chennai
Best Apple IOS Training in Chennai | Best Iphone Training in ChennaiBest Apple IOS Training in Chennai | Best Iphone Training in Chennai
Best Apple IOS Training in Chennai | Best Iphone Training in ChennaiCore Mind
 
Comparison of Programming Platforms
Comparison of Programming PlatformsComparison of Programming Platforms
Comparison of Programming PlatformsAnup Hariharan Nair
 

Semelhante a iOS Dev Intro (20)

Coca
CocaCoca
Coca
 
Introducing spring
Introducing springIntroducing spring
Introducing spring
 
Lecture 1 slides
Lecture 1 slidesLecture 1 slides
Lecture 1 slides
 
Cross Platform Mobile Apps with the Ionic Framework
Cross Platform Mobile Apps with the Ionic FrameworkCross Platform Mobile Apps with the Ionic Framework
Cross Platform Mobile Apps with the Ionic Framework
 
A Journey From Objective C to Swift - Chromeinfotech
A Journey From Objective C to Swift - ChromeinfotechA Journey From Objective C to Swift - Chromeinfotech
A Journey From Objective C to Swift - Chromeinfotech
 
mekentosj.com - building Papers
mekentosj.com - building Papersmekentosj.com - building Papers
mekentosj.com - building Papers
 
iPhone Programming in 30 minutes (?) [FTS]
iPhone Programming in 30 minutes (?) [FTS]iPhone Programming in 30 minutes (?) [FTS]
iPhone Programming in 30 minutes (?) [FTS]
 
Intro to c# (vs. objective c and java)
Intro to c# (vs. objective c and java)Intro to c# (vs. objective c and java)
Intro to c# (vs. objective c and java)
 
Intro to c# (vs. objective c and java)
Intro to c# (vs. objective c and java)Intro to c# (vs. objective c and java)
Intro to c# (vs. objective c and java)
 
Modern ASP.NET Webskills
Modern ASP.NET WebskillsModern ASP.NET Webskills
Modern ASP.NET Webskills
 
Confluence
ConfluenceConfluence
Confluence
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobile
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
Portfolio
PortfolioPortfolio
Portfolio
 
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC Team
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC TeamAOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC Team
AOP-IOC made by Vi Quoc Hanh and Vu Cong Thanh in SC Team
 
I pad uicatalog_lesson02
I pad uicatalog_lesson02I pad uicatalog_lesson02
I pad uicatalog_lesson02
 
Android L09 - Windows Phone and iOS
Android L09 - Windows Phone and iOSAndroid L09 - Windows Phone and iOS
Android L09 - Windows Phone and iOS
 
MV(C, mvvm) in iOS and ReactiveCocoa
MV(C, mvvm) in iOS and ReactiveCocoaMV(C, mvvm) in iOS and ReactiveCocoa
MV(C, mvvm) in iOS and ReactiveCocoa
 
Best Apple IOS Training in Chennai | Best Iphone Training in Chennai
Best Apple IOS Training in Chennai | Best Iphone Training in ChennaiBest Apple IOS Training in Chennai | Best Iphone Training in Chennai
Best Apple IOS Training in Chennai | Best Iphone Training in Chennai
 
Comparison of Programming Platforms
Comparison of Programming PlatformsComparison of Programming Platforms
Comparison of Programming Platforms
 

Mais de Gonzalo Parra

Mume JQueryMobile Intro
Mume JQueryMobile IntroMume JQueryMobile Intro
Mume JQueryMobile IntroGonzalo Parra
 
iOS Development Introduction
iOS Development IntroductioniOS Development Introduction
iOS Development IntroductionGonzalo Parra
 
More! A Social Discovery Tool for Researchers
More! A Social Discovery Tool for ResearchersMore! A Social Discovery Tool for Researchers
More! A Social Discovery Tool for ResearchersGonzalo Parra
 
ARIADNE LOM Application Profile
ARIADNE LOM Application ProfileARIADNE LOM Application Profile
ARIADNE LOM Application ProfileGonzalo Parra
 
Iphone Presentation for MuMe09
Iphone Presentation for MuMe09Iphone Presentation for MuMe09
Iphone Presentation for MuMe09Gonzalo Parra
 

Mais de Gonzalo Parra (12)

Mume JQueryMobile Intro
Mume JQueryMobile IntroMume JQueryMobile Intro
Mume JQueryMobile Intro
 
Mume HTML5 Intro
Mume HTML5 IntroMume HTML5 Intro
Mume HTML5 Intro
 
TiNYARM @ MATEL WS
TiNYARM @ MATEL WSTiNYARM @ MATEL WS
TiNYARM @ MATEL WS
 
Mobile development
Mobile developmentMobile development
Mobile development
 
iOS Development Introduction
iOS Development IntroductioniOS Development Introduction
iOS Development Introduction
 
More! @ EC-TEL
More! @ EC-TELMore! @ EC-TEL
More! @ EC-TEL
 
More! @ ED-MEDIA
More! @ ED-MEDIAMore! @ ED-MEDIA
More! @ ED-MEDIA
 
Research2.0
Research2.0Research2.0
Research2.0
 
More! A Social Discovery Tool for Researchers
More! A Social Discovery Tool for ResearchersMore! A Social Discovery Tool for Researchers
More! A Social Discovery Tool for Researchers
 
MACE
MACEMACE
MACE
 
ARIADNE LOM Application Profile
ARIADNE LOM Application ProfileARIADNE LOM Application Profile
ARIADNE LOM Application Profile
 
Iphone Presentation for MuMe09
Iphone Presentation for MuMe09Iphone Presentation for MuMe09
Iphone Presentation for MuMe09
 

iOS Dev Intro

  • 1. IOS DEVELOPMENT INTRODUCTION Gonzalo Parra #mume12 October 5, 2012
  • 2. A smartphone is a mobile phone that offers more advanced computing ability and connectivity than a contemporary feature phone. Source: LP33.TV
  • 3. WHAT IS THE IPHONE? • accelerometer • Three-axis gyro • Assisted GPS • Digital compass • multi-touch display • sensors (proximity, ambient light) • camera (photos, video) • UMTS/HSDPA, GSM/EDGE, WI-FI, Bluetooth
  • 4. IOS? • iPod Touch • iPhone • iPad
  • 5. WHAT IS THE IOS? Based on a work at cs193p.stanford.edu
  • 6. iOS Core OS Cocoa Touch OSX Kernel Power Management Media Mach 3.0 Keychain Access BSD Certificates Core Services Sockets File System Core OS Security Bonjour Based on a work at cs193p.stanford.edu
  • 7. iOS Core Services Cocoa Touch Collections Core Location Media Address Book Net Services Networking Threading Core Services File Access Preferences Core OS SQLite URL Utilities Based on a work at cs193p.stanford.edu
  • 8. iOS Media Cocoa Touch Core Audio JPEG, PNG, TIFF Media OpenAL PDF Audio Mixing Quartz (2D) Core Services Audio Recording Core Animation Core OS Video Playback OpenGL ES Based on a work at cs193p.stanford.edu
  • 9. iOS Cocoa Touch Cocoa Touch Multi-Touch Alerts Media Core Motion Web View View Hierarchy Map Kit Core Services Localization Image Picker Core OS Controls Camera Based on a work at cs193p.stanford.edu
  • 10. TYPES OF DEVELOPMENT • Native Apps • Mobile Web Apps • External frameworks
  • 11. NATIVE APPLICATIONS • iOS SDK (requires an Intel Mac) • Language: Objective-C • Tools: XCode • Apple Developer Program • AppStore
  • 13. MOBILE WEB APPLICATIONS • Language: HTML*, Javascript, CSS • Frameworks: Sencha Touch, jQueryMobile, ... • Tools: HTML* editor (DashCode), Safari • Can be displayed in “every” smartphone * PHP, JSP, ASP, ...
  • 14. EXAMPLES iUi: iPhone User Interface Framework
  • 15. EXTERNAL PLATFORMS • PhoneGap, Titanium,... • requires iOS SDK • Language: HTML, Javascript, CSS
  • 17. COMPONENTS • iOS SDK (requires an Intel Mac) • Frameworks: Foundation, UIKit, Core Data, Core ... • Design strategy: MVC • Language: Objective-C • Tools: XCode (iOS Simulator), Instruments • Apple Developer Program
  • 19. MVC MVC Controller Model View It’s all about managing communication between camps St C Based on a work at cs193p.stanford.edu Fa
  • 20. MVC: CONTROLLER MVC Controller outlet Model View Controllers can also talk directly to their View. St C Based on a work at cs193p.stanford.edu Fal
  • 21. MVC: VIEW MVC should target will did Controller data count outlet at da de ta le g so at u action e rc e Model View No. The Model is (should be) UI independent. St C Based on a work at cs193p.stanford.edu Fal
  • 22. MVC: MODEL MVC should target will did Controller data count outlet at da de Notification ta le & KVO g so at u action e rc e Model View Now combine MVC groups to make complicated programs ... St C Based on a work at cs193p.stanford.edu Fal
  • 23. MVC MVCs working together Stanford CS193p Fall 2010 Based on a work at cs193p.stanford.edu
  • 25. OBJECTIVE-C .h .m Interface Implementation
  • 26. CLASSES From: “The Objective-C Programming Language”
  • 27. METHODS [myArray insertObject:anObject atIndex:0]; From: “The Objective-C Programming Language”
  • 28. PROPERTIES @property BOOL flag; .h @property (nonatomic) NSString *nameObject; @synthesize flag = _flag; .m @synthesize nameObject = _nameObject; From: “The Objective-C Programming Language”
  • 31. HELLO IPHONE MVC MVC HelloiPhoneViewController target Controller outlet X action myButtonPushed Model View UISlider UILabel UIButton Then hand out an action to the View. Sta CS Based on a work at cs193p.stanford.edu Fall
  • 34. MVC
  • 36. CODE • HelloiPhone: http://bit.ly/helloiphonecode • Calculator: http://bit.ly/mume10calc • MapApp: http://bit.ly/mume10map
  • 38. REFERENCES • CS193P: Developing Applications for iOS, Stanford University: http://cs193p.stanford.edu/ • HelloWorld Tutorial: http://bit.ly/helloiphone • iPhone Programming Tutorials: http://bit.ly/crwpk0 • Learning Objective-C: A Primer: http://bit.ly/objcpl