ios界面切换方式之presentViewController(模态窗体展现方法)


一、presentViewController 功能简介:

一个viewControllerA中模态显示viewControllerB时,VC A就作为B的(presenting view controller) 属性,而VC B则作为B的 presented view controller 属性。
在viewControllerA.m中编写 presentViewController方法,使VC B展现
presentViewController


二、dismissViewControllerAnimated 功能简介:

使 view controller B(presented view controller B)消失,自动返回到viewController A 中。
在viewControllerB.m中编写 dismissViewControllerAnimated方法,使VC B消失
dismissViewControllerAnimated