IPad viewWillAppear and presentModalViewController problems

On the iPhone, I have a table view and touch cells, I have one method that calls presentModalViewController, and open another view using email and similar materials. When the user clicks the cancel button, the viewWillAppear method in the previous view is called. So far, so good. But on the iPad, viewWillAppear is only called for the first time the view appears, does anyone know if this is a mistake or is it right? I tried to implement

- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated{ 

without success.

Does anyone know how to fix this without using any delegate method from scratch? thanks in advance

+7
iphone ipad tableview viewwillappear
source share
3 answers

Because view managers presented modally do not necessarily completely overlap the main look on the iPad, the viewWillAppear method does not work when the mentioned modal view managers are rejected. I rely on delegation methods to inform the original view controller of the action of the modal view controller. I think this is the best way to go.

+3
source share

Most likely this is a mistake, I would publish a bug report with apple here .

0
source share

Based on guesswork, not reading, testing, or anything useful actually, but therefore not covered by the NDA ...

Is viewWillDisappear callable on a ViewModalViewController? Maybe he does not believe that the modal representation completely hides the original representation, therefore (unlike the iPhone) both exist simultaneously?

0
source share

All Articles