所需文件:
1、AFNetworking
2、Category
3、MBprogreeHUD
进行对AFNetworking的封装包含POST,GET,上传图片

只需一句话就可完成网络数据请求
需要在Tool.m中填写BaseUrl:

实现方式:
在Path填写请求的地址

如果请求不到数据需在Info.plist文件中
在Info.plist文件中添加
info.plist
Open As
Source As 添加

直接上代码demo:
http://www.code4app.com/forum.php?mod=viewthread&tid=14557&extra=
网友评论