I want to Execute code only for first time the app starts...so that this code or file should not execute when user restarts the app....
Actually i want to store array in a file system of iphone. This array is editable,
if user edits the record i will save the edited array to file but if user restarts the app it will again reload the static array and will erase the edited record...
Plz suggest on this..
Actually i want to store array in a file system of iphone. This array is editable,
Code:
Viewdidload(){
NSMutableArray *countriesToLiveInArray = [NSMutableArray arrayWithObjects:@"Iceland", @"Greenland", @"Switzerland", @"Norway", @"New Zealand", @"Greece", @"Italy", @"Ireland", nil];
code to : Save array to file abc
reload data from saved file abc
}
button_editclick{
Save array to file abc
reload data from saved file abc
}
if user edits the record i will save the edited array to file but if user restarts the app it will again reload the static array and will erase the edited record...
Plz suggest on this..