I have two ViewController. First ViewController has a TableView. I present second ViewController programmatically modally. In second ViewController I download an image. Now I dismiss the second ViewController after completion of the download. And in the mean time I would like to update the TableView with the image and make that specific cell selected.
I have used delegate to do this process. But it could not update the TableView.
I used viewDidAppear, viewWillAppear method to reload the TableView. But no effect.
Can anybody suggest me with this specific task to complete?
I have presented my second ViewController by this way:
ImageSelectionViewController *viewController= [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"modal"];
viewController.modalPresentationStyle = UIModalPresentationCustom;
viewController.carDownloadName = [self.listOfItem objectAtIndex:sender.tag];
[self presentViewController:viewController animated:YES completion:nil];
and dismiss ViewController by this way :
[self dismissViewControllerAnimated:YES completion:nil];