Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 使用线框/路由器实体显示模态视图_Ios_Swift_Mvp_Clean Architecture - Fatal编程技术网

Ios 使用线框/路由器实体显示模态视图

Ios 使用线框/路由器实体显示模态视图,ios,swift,mvp,clean-architecture,Ios,Swift,Mvp,Clean Architecture,我的问题是:有了线框实体,模态视图应该由使用Presenter实体的线框表示,还是由于具有垂直层次结构,它应该由父视图控制器直接表示 A: B: 哪一个是正确的选择?我认为B是最好的方法,因为模态视图是父VC功能的一部分;不是另一个模块 parentVC.presenter?.presentModalView()//This method call the wireframe routing parentVC.present(ModalView())

我的问题是:有了线框实体,模态视图应该由使用Presenter实体的线框表示,还是由于具有垂直层次结构,它应该由父视图控制器直接表示

A:

B:

哪一个是正确的选择?我认为B是最好的方法,因为模态视图是父VC功能的一部分;不是另一个模块

parentVC.presenter?.presentModalView()//This method call the wireframe routing
parentVC.present(ModalView())