Does avoiding evading the msontrollerAnimated module not always work?

What prevents to disable the modal view manager? I found that non-modal control does the setup not always work? For example, this will not work:

SettingsViewController* settings = [[SettingsViewController alloc] init]; UINavigationController *settingsNav = [[UINavigationController alloc] initWithRootViewController:settings]; [navigationController presentModalViewController:settingsNav animated:YES]; [navigationController dismissModalViewControllerAnimated:YES]; 

Thanks!

+4
source share
2 answers

If you try to make too many navigation animations too close together, they usually will not work. Try the rejectModalViewControllerAnimated: function after a delay of 0.75 seconds.

+5
source
 SettingsViewController* settings = [[SettingsViewController alloc] init]; UINavigationController *settingsNav = [[UINavigationController alloc] initWithRootViewController:settings]; [navigationController presentModalViewController:settingsNav animated:YES]; [settingsNav dismissModalViewControllerAnimated:YES]; 

If SettingsViewController is a UIViewController, then:

 SettingsViewController* settings = [[SettingsViewController alloc] init]; [self presentModalViewController:settings animated:YES]; [settings dismissModalViewControllerAnimated:YES]; 
0
source

All Articles