·您现在的位置: 云翼网络 >> 文章中心 >> 网站建设 >> app软件开发 >> IOS开发 >> 关于iOSAPP中网络层的设计

关于iOSAPP中网络层的设计

作者:佚名      IOS开发编辑:admin      更新时间:2022-07-23

在iOS开发中,请求网络数据,处理获得的数据是很常见的功能,但是很少有资料会讨论关于网络的处理应该放在MVC中得哪个层中。

我在网上Google了一番,记下了几个觉得比较不错的链接。现记录如下:

http://stackoverflow.com/questions/4810289/best-architecture-for-an-ios-application-that-makes-many-network-requests?lq=1

这个答案提供了一个实际的设计

http://akosma.com/2011/09/20/a-PRoposed-architecture-for-network-bound-ios-apps/

这里面谈论了具体的实现

 

http://stackoverflow.com/questions/24162051/best-architectural-approaches-for-building-ios-networking-applications-rest-cli

这里面谈论了几个设计方法

 

http://stackoverflow.com/questions/27044970/afnetworking-2-0-how-to-pass-response-to-another-class-on-success?rq=1