PresentModalViewController does not work if called too early

If I reject the modal VC and submit it (or another one) in less than a certain time, it does not appear. Did I miss something?

+3
source share
2 answers

Yes, you cannot do this. I assume you did something like this:

 [self dismissModalViewControllerAnimated:YES];
 [self presentModalViewController:myNewController animated:YES];

. , , , . , , , viewDidAppear (, , viewDidDisappear , , ).

+8

, , , , ,

[self performSelector:@selector(method) withObject:nil afterDelay:.5];

. 0,5 , , , , .

0

Source: https://habr.com/ru/post/1769472/


All Articles