Is it OK if dismissModalViewControllerAnimated: gets called before presentModalViewControllerAnimated:?
I'm doing:
if (navigationController.visibleViewController == passcodeInputNav) {
[navigationController dismissModalViewControllerAnimated:NO];
}
Is the condition unnecessary? Can I just do:
[navigationController dismissModalViewControllerAn开发者_JAVA百科imated:NO];
What happens if there's no modal view controller?
I'm going with:
[navigationController dismissModalViewControllerAnimated:NO];
without the if statement because it works whether or not the modal view controller has been presented.
精彩评论