MVP,MVC,MVVM和VIPER。 什么对iOS开发更好?
Same like every house has a solid basement, every software project, has an software architecture it is built on, and each project has its own app structure. The types of architectural patterns may vary, but there are 4 most commonly-used ones - the ones whole IT world continuously criticizes but keeps using at the same time: MVC, MVP, MVVM and Viper (the last one as iOS architecture pattern mostly). The comparison of these patterns and choosing a better fit for each Swift-written project's case will be discovered further on in this article.
按照事物的时间顺序,一旦出现了第一个软件设计模式,这些ios开发体系结构模式的常见问题就很快出现了。 例如,服务器与客户端之间的通信问题–一个与另一个如何交互? 或不同的问题–将应用程序的业务逻辑与应用程序内的逻辑分开的问题; 就应用程序体系结构而言,这应该如何执行? 由于它们,针对不同架构层的各种设计模式已经成为现实。 其中最著名的是:
请继续在我们的博客上阅读MVP,MVC,MVVM和VIPER。 什么对iOS开发更好?
- 在Build中dynamic设置Xcode 4中的iOS Bundle Display Name
- 如果应用程序已经在后台运行,当用户点击通知时,如何获得推送通知的有效载荷?
- 致命错误:意外地发现零,而解包一个可选值(不能强制非可选types的string的解包值)
- Swift:我如何将一个NSIndexPath绑定到一个addTarget
- 在iOS应用程序中parsing标准化的HTML
- NSTextContainer与非规则形状的例子?
- 如何使用像whatsapp这样的quickblox sdk ios离线发送消息
- 未声明的委托,并应startStartLoadWithRequest
- 2 UITableView在UIViewController互相影响