Your SlideShare is downloading. ×
Lesson 1
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Lesson 1

818
views

Published on


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

No Downloads
Views
Total Views
818
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
50
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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