Question

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?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top