开发者

Modal viewController

My Question is what is the difference between a ViewController and a Modal ViewContro开发者_StackOverflow社区ller ?

Thanks for your answers,


No difference, except for the way that they're presented. A modal view controller is any view controller that's presented modally, using -[UIViewController presentModalViewController:animated:].


A modal view controller is used (usually) to gather information from the user before resuming operation. Basically, the view shown is only dismissed when the user completes a form or something similar. While shown, the modal view does not allow in any way accessing the other views shown, until it's dismissed.

Full details available here.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜