HireVietnamese - Lesson 1

9,923 views

Published on

iPhone App Development Tutorial

Published in: Technology, News & Politics
5 Comments
6 Likes
Statistics
Notes
No Downloads
Views
Total views
9,923
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
917
Comments
5
Likes
6
Embeds 0
No embeds

No notes for slide

HireVietnamese - Lesson 1

  1. 1. HIREVIETNAMESEiPhone Training Lesson 1
  2. 2. http://www.hirevietnamese.com HIREVIETNAMESE Contents 1 Introduction to iPhone Programming 2 Getting Setup 3 Programming Fundamentals 4 Example 1 5 Exercise 1
  3. 3. http://www.hirevietnamese.com HIREVIETNAMESE Introduction to iPhone Programming
  4. 4. 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
  5. 5. 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
  6. 6. 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
  7. 7. http://www.hirevietnamese.com HIREVIETNAMESE Programming Fundamentals New Project
  8. 8. http://www.hirevietnamese.com HIREVIETNAMESE Programming Fundamentals Tools -> Library Interface Builder
  9. 9. http://www.hirevietnamese.com HIREVIETNAMESE Programming Fundamentals Key objects in an iOS application
  10. 10. http://www.hirevietnamese.com HIREVIETNAMESE Programming Fundamentals The Application Life Cycle
  11. 11. 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.
  12. 12. http://www.hirevietnamese.com HIREVIETNAMESE Programming Fundamentals Launching into the active state
  13. 13. http://www.hirevietnamese.com HIREVIETNAMESE Programming Fundamentals Moving from the foreground to the background
  14. 14. http://www.hirevietnamese.com HIREVIETNAMESE Programming Fundamentals Handling application interruptions
  15. 15. http://www.hirevietnamese.com HIREVIETNAMESE Programming Fundamentals Transitioning from the background to the foreground
  16. 16. http://www.hirevietnamese.com HIREVIETNAMESE Outlets and Actions Outlet
  17. 17. http://www.hirevietnamese.com HIREVIETNAMESE Outlets and Actions UI Code
  18. 18. http://www.hirevietnamese.com HIREVIETNAMESE Outlets and Actions - (IBAction) gotoNext:(NSString*)str;
  19. 19. http://www.hirevietnamese.com HIREVIETNAMESE View Controllers
  20. 20. http://www.hirevietnamese.com HIREVIETNAMESE View Controllers [viewController addSubView:view] [navigationController pushViewController:viewController] [self.window addSubview:navigationController.view] [self.window makeKeyAndVisible]
  21. 21. http://www.hirevietnamese.com HIREVIETNAMESE Example 1 Input name = empty Tap on display button
  22. 22. http://www.hirevietnamese.com HIREVIETNAMESE Example 1 If name == “HireVietnamese” Tap on display button
  23. 23. http://www.hirevietnamese.com HIREVIETNAMESE Exercise 1
  24. 24. HIREVIETNAMESE

×