iOS框架--Present模态视图的坑儿
2018-07-05 本文已影响39人
人生看淡不服就干
1.PresentVC与RootVC的关系:rootVC的view从window上移除,而presentedVC的view贴在了window上,但rootVC通过presentedViewController属性持有了presentedVC

2. 一般是最外层容器containerVC负责present,childVC的present效果都一样。每个childVC的presetedViewController指向同一个对象,而被presentedVC以及它的childVC的presentingViewController也都指向containerVC
