SlideShare a Scribd company logo
1 of 24
Download to read offline
HIREVIETNAMESE




iPhone Training
     Lesson 1
http://www.hirevietnamese.com                              HIREVIETNAMESE

    Contents

               1      Introduction to iPhone Programming

               2      Getting Setup

               3      Programming Fundamentals


               4      Example 1


               5      Exercise 1
http://www.hirevietnamese.com            HIREVIETNAMESE

    Introduction to iPhone Programming
http://www.hirevietnamese.com                    HIREVIETNAMESE

    Introduction to iPhone Programming

     Based on Objective-C
     Only one application running at a time (multi-tasking
      implemented in OS 4)
     Only one window
     Limited Screen Size
        480 x 320 pixels (iPhone, 3G, & 3GS)
        960 x 640 (iPhone 4G)
        1024 x 768 (iPad)
     Limited System Resources
http://www.hirevietnamese.com                        HIREVIETNAMESE

    Introduction to iPhone Programming

     Model – View –Controller (MVC) is
      the method used for developing a
      mobile app with XCode:
        Model holds your application’s data
        View holds the window, controls and other
         UI
        Controller Binds the model and view
         together and decides how to handle user
         input
http://www.hirevietnamese.com                          HIREVIETNAMESE

    Getting Setup

      Resources you will need:                Beginning iPhone 3
                                                Development

      Mac OS 10.6.x                            Programming in
           and                                   Objective-C
      iOS SDK 2.4.x

          Software               MAC Mini          Textbook
                                    Or
                                MacBook Pro

                                  Hardware
http://www.hirevietnamese.com          HIREVIETNAMESE

    Programming Fundamentals


                                New Project
http://www.hirevietnamese.com        HIREVIETNAMESE

    Programming Fundamentals


                                Tools -> Library


                                Interface Builder
http://www.hirevietnamese.com               HIREVIETNAMESE

    Programming Fundamentals

                                Key objects in an iOS
                                     application
http://www.hirevietnamese.com          HIREVIETNAMESE

    Programming Fundamentals

                                The Application
                                  Life Cycle
http://www.hirevietnamese.com                                                 HIREVIETNAMESE

     Programming Fundamentals
 State         Description
               The application has not been launched or was running but was terminated by the
 Not running
               system.

 Inactive      The application is running in the foreground but is currently not receiving events.

 Active        The application is running in the foreground and is receiving events.

 Background    The application is in the background and executing code.



 Suspended     The application is in the background but is not executing code.
http://www.hirevietnamese.com       HIREVIETNAMESE

    Programming Fundamentals

                                Launching into the
                                active state
http://www.hirevietnamese.com     HIREVIETNAMESE

    Programming Fundamentals

                                Moving from the
                                foreground to the
                                background
http://www.hirevietnamese.com                   HIREVIETNAMESE

    Programming Fundamentals
                                Handling application interruptions
http://www.hirevietnamese.com            HIREVIETNAMESE

    Programming Fundamentals
                                Transitioning from the
                                background to the
                                foreground
http://www.hirevietnamese.com            HIREVIETNAMESE

    Outlets and Actions




                                Outlet
http://www.hirevietnamese.com        HIREVIETNAMESE

    Outlets and Actions

                                UI           Code
http://www.hirevietnamese.com                        HIREVIETNAMESE

    Outlets and Actions
                                - (IBAction) gotoNext:(NSString*)str;
http://www.hirevietnamese.com   HIREVIETNAMESE

    View Controllers
http://www.hirevietnamese.com                                     HIREVIETNAMESE

    View Controllers



                     [viewController addSubView:view]

                     [navigationController pushViewController:viewController]

                     [self.window addSubview:navigationController.view]

                     [self.window makeKeyAndVisible]
http://www.hirevietnamese.com                       HIREVIETNAMESE

    Example 1




                            Input name = empty

                            Tap on display button
http://www.hirevietnamese.com                          HIREVIETNAMESE

    Example 1




                         If name == “HireVietnamese”

                            Tap on display button
http://www.hirevietnamese.com   HIREVIETNAMESE

    Exercise 1
HIREVIETNAMESE

More Related Content

Similar to HireVietnamese - Lesson 1

Baruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion WorkshopBaruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion Workshop
Brian Sam-Bodden
 
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World Romania
Christian Heilmann
 
"Native" Apps with APEX and PhoneGap
"Native" Apps with APEX and PhoneGap"Native" Apps with APEX and PhoneGap
"Native" Apps with APEX and PhoneGap
Christian Rokitta
 
iPhone meets SOA - 06/2008
iPhone meets SOA - 06/2008iPhone meets SOA - 06/2008
iPhone meets SOA - 06/2008
Roland Tritsch
 

Similar to HireVietnamese - Lesson 1 (20)

Intro to PhoneGap
Intro to PhoneGapIntro to PhoneGap
Intro to PhoneGap
 
The web - What it has, what it lacks and where it must go - keynote at Riga D...
The web - What it has, what it lacks and where it must go - keynote at Riga D...The web - What it has, what it lacks and where it must go - keynote at Riga D...
The web - What it has, what it lacks and where it must go - keynote at Riga D...
 
Testing Big in JavaScript
Testing Big in JavaScriptTesting Big in JavaScript
Testing Big in JavaScript
 
HireVietnamese - Lesson 2
HireVietnamese - Lesson 2HireVietnamese - Lesson 2
HireVietnamese - Lesson 2
 
HireVietnamese - Lesson 2
HireVietnamese - Lesson 2HireVietnamese - Lesson 2
HireVietnamese - Lesson 2
 
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
The web - What it has, what it lacks and where it must go - Bulgaria Web Summ...
 
Building Mobile Apps on aPaaS platforms
Building Mobile Apps on aPaaS platformsBuilding Mobile Apps on aPaaS platforms
Building Mobile Apps on aPaaS platforms
 
Baruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion WorkshopBaruco 2014 - Rubymotion Workshop
Baruco 2014 - Rubymotion Workshop
 
Fixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World RomaniaFixing the mobile web - Internet World Romania
Fixing the mobile web - Internet World Romania
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
 
Wheat - Mobile functional test automation
Wheat - Mobile functional test automationWheat - Mobile functional test automation
Wheat - Mobile functional test automation
 
The web - What it has, what it lacks and where it must go - Istanbul
The web - What it has, what it lacks and where it must go - IstanbulThe web - What it has, what it lacks and where it must go - Istanbul
The web - What it has, what it lacks and where it must go - Istanbul
 
"Native" Apps with APEX and PhoneGap
"Native" Apps with APEX and PhoneGap"Native" Apps with APEX and PhoneGap
"Native" Apps with APEX and PhoneGap
 
iPhone meets SOA - 06/2008
iPhone meets SOA - 06/2008iPhone meets SOA - 06/2008
iPhone meets SOA - 06/2008
 
Samsung Indonesia: Tizen Wearables
Samsung Indonesia: Tizen WearablesSamsung Indonesia: Tizen Wearables
Samsung Indonesia: Tizen Wearables
 
Phone gap development, testing, and debugging
Phone gap development, testing, and debuggingPhone gap development, testing, and debugging
Phone gap development, testing, and debugging
 
A Crash Course in Rapid Application Development
A Crash Course in Rapid Application DevelopmentA Crash Course in Rapid Application Development
A Crash Course in Rapid Application Development
 
IBM MobileFirst Platform v7.0 Pot Intro v0.1
IBM MobileFirst Platform v7.0 Pot Intro v0.1IBM MobileFirst Platform v7.0 Pot Intro v0.1
IBM MobileFirst Platform v7.0 Pot Intro v0.1
 
IBM MobileFirst Platform v7.0 pot intro v0.1
IBM MobileFirst Platform v7.0 pot intro v0.1IBM MobileFirst Platform v7.0 pot intro v0.1
IBM MobileFirst Platform v7.0 pot intro v0.1
 
Django simplified : by weever mbakaya
Django simplified : by weever mbakayaDjango simplified : by weever mbakaya
Django simplified : by weever mbakaya
 

Recently uploaded

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
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

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
 
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...
 
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...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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)
 
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, ...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
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...
 
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
 
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
 
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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

HireVietnamese - Lesson 1