摘要:
NSMutableString *urlStr = [NSMutableString stringWithFormat:@"%@?",request.URL]; for (int i=0;i<[parameters count];++i) { (i==0)?:[urlStr appendString:@"&"]; NSString *key = [[parameters allKeys] objectAtIndex:i]; NSString *value = [[parameters allValues] objectAtInde... 阅读全文
摘要:
NetWorkAPIClient.h#import #import "AFHTTPRequestOperationManager.h"#define POST_PATH @"/campus/dispatch.rpc"#define BASE_URL @"http://192.168.0.102:8080/idc/mobile/"//测试环境@interface NetWorkAPIClient : AFHTTPRequestOperationManager+ (NetWorkAPIClient *)sharedClient;@endN 阅读全文