I want my annotation to be stored when I quit the application and pop up again when I launch the application…. How can I make this possible? Any ideas?
-(IBAction)storeLocation:(id)sender{
SparaPosition *position=[[SparaPosition alloc] initWithCoordinate:location];
[mapView addAnnotation:position];
savedPosition = location;
Please… need some help!
Thanks!
If you want to save just one annotation’s coordinates, simplest way is to use NSUserDefaults.
To save:
To load (in viewDidLoad for example):