Lesson 4

434 views
415 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
434
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
67
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lesson 4

  1. 1. HIREVIETNAMESEiPhone Training Lesson 4
  2. 2. HIREVIETNAMESEhttp://www.hirevietnamese.com Contents 1 Storing Data 4 Example 4 5 Exercise 4 2
  3. 3. HIREVIETNAMESEhttp://www.hirevietnamese.com Storing Data Setting user Preferences with NSUserDefaults 3
  4. 4. HIREVIETNAMESEhttp://www.hirevietnamese.com NSUserDefaults  Get a Handle to the NSUserDefaults object  NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];  Saving  [prefs setObject:ObjectToSave forKey:”KEY”];  Retrieving  NSString *myString = [prefs stringForKey:@“KEY"]; 4
  5. 5. HIREVIETNAMESEhttp://www.hirevietnamese.com Storing Data Saving/Retrieving Data from a SQLite Database 5
  6. 6. HIREVIETNAMESEhttp://www.hirevietnamese.com Create Database 6
  7. 7. HIREVIETNAMESEhttp://www.hirevietnamese.com Check and Create DB 7
  8. 8. HIREVIETNAMESEhttp://www.hirevietnamese.com Select Statement 8
  9. 9. HIREVIETNAMESEhttp://www.hirevietnamese.com Delete Statement 9
  10. 10. HIREVIETNAMESEhttp://www.hirevietnamese.com Add Statement 10
  11. 11. HIREVIETNAMESEhttp://www.hirevietnamese.com Update Statement 11
  12. 12. HIREVIETNAMESEhttp://www.hirevietnamese.com Example 4 12
  13. 13. HIREVIETNAMESEhttp://www.hirevietnamese.com Exercise 4 13
  14. 14. HIREVIETNAMESE

×