Is it OK if dismissModalViewControllerAnimated: gets called before presentModalViewControllerAnimated:?

StackOverflow https://stackoverflow.com/questions/5922666

I'm doing:

if (navigationController.visibleViewController == passcodeInputNav) {
    [navigationController dismissModalViewControllerAnimated:NO];
}

Is the condition unnecessary? Can I just do:

[navigationController dismissModalViewControllerAnimated:NO];

What happens if there's no modal view controller?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top