LCNetworking
Requirements
- iOS 7.0+
- OS X 10.9+
Installation
LCNetworking is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "LCNetworking"
Author
Little-Captain, [email protected]
License
LCNetworking is available under the MIT license. See the LICENSE file for more info.
中文描述
环境要求
- iOS 7.0+
- OS X 10.9+
安装
pod "LCNetworking"
问题及解决方案
- 默认的 AFNetworking 存在内存泄漏问题, 本框架采用单例对象解决内存泄漏问题
如何使用
- 获取对象
// 单例对象
[LCHTTPSessionManager sharedInstance];
// 创建非单例对象, 不推荐
[LCHTTPSessionManager manager];
- 发送请求 GET/POST 请求
[[LCHTTPSessionManager sharedInstance] request:...];
- 上传文件
[[LCHTTPSessionManager sharedInstance] upload:...];
作者
Little-Captain, [email protected]
版权
查看 LICENSE 文件获取更多信息