开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜