Skip to content

iOS Network

zhangyanqiang edited this page Apr 26, 2018 · 1 revision

Network

demo中实现的network是基于AFNetworking实现,只需实现get接口即可,接口样式如下

+(BOOL)  get:(NSString*)uri 
   arguments:(NSDictionary*)argument 
     success:(void(^)(id))success
     failure:(void(^)(void))failure;

+(BOOL) post:(NSString*)uri
   arguments:(NSDictionary*)argument
     success:(void(^)(id))success
     failure:(void(^)(void))failure;