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