dismissViewControllerAnimated doesnt load viewDidLoad again
cocoa-touch, ios, objective-c
Solution
`ViewDidLoad` method is called only once. After `dismissViewControllerAnimated` is called parentViewControllers `viewWillAppear` method is called.
Write you code from `viewDidLoad` to `viewWillAppear`
Problem
I have tried a few things which havent really worked (more things I have thought of). When using `[self dismissViewControllerAnimated:YES completion:nil];` I need it to run the `viewDidLoad` method of the controller I am going back to. How can I do this? I thought maybe in the `completion` however, it would access the `viewDidLoad` of this class rather than of the one im resuming to.