Changes

m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<googlehtmlet>BUY_IPADios9_upgrade</googlehtmlet>
Each time the application is launched by the user, the code will need to identify whether the archive data file exists from a previous session. In the event that it does exist, the archive will need to read the contents to recreate the original array object from which the archive was created. Using this newly recreated array object, the array element will then be extracted and used to populate the name, address and phone text fields.
<googlehtmlet>BUY_IPAD_BOTTOMios9_upgrade</googlehtmlet>
The traditional location for placing such initialization code is in the viewDidLoad method of the view controller class. Within the project window, select the archiveViewController.m file and scroll down the contents of this file until you reach the viewDidLoad method. This method is commented out by default so remove the leading and trailing /* and */ markers before entering the following code:
Save the code changes and build and run the application in the simulator environment. Enter a name, address and phone number into the respective text fields and tap the Save button. Exit the iOS iPad Simulator (''iOS Simulator -> Quit iOS Simulator'') and then relaunch the application (''Product -> Run''). The application should re-appear with the text fields primed with the contact information saved during the previous session:
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
[[Image:ipad_archive_app_running.jpg|An iPad iOS 4 data archive app running]]
<googlehtmlet>BUY_IPAD_BOTTOMios9_upgrade</googlehtmlet>
 
<htmlet>ezoicbottom</htmlet>
<hr>
<table border="0" cellspacing="0" width="100%">