i have two viewcontroller. First view controller include a map and annotations, when i touch an annotation my second view come. At second view i touch the delete button. So my first view’s content must be refresh before this code : [self.navigationController popViewControllerAnimated:YES];
i need to call viewdidload method or refresh the content of my previous view from second view.
i have two viewcontroller . First view controller include a map and annotations, when
Share
-(void)viewWillAppear:animated
Not sure if its called before [self.navigationController popViewControllerAnimated:YES]; but certainly before you see the view. Make a call to reload your map’s annotations in it.
Also make sure to call viewWillAppear super.
If both view are not working form the same data object you’ll need a delegate to send the data back.