标签:des style http color io os 使用 ar sp
首先需要导入jsonkit第三方包
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
NSDictionary *parameter = [NSDictionary dictionaryWithObjectsAndKeys:@"13817676763",@"UPHONE",@"123",@"UFPWD",@"0000",@"AUTHCODE",nil];
NSDictionary *parameters = [NSDictionary dictionaryWithObjectsAndKeys:[parameter JSONString],@"json",nil];
// NSMutableArray *array = [[NSMutableArray alloc] initWithObjects:[NSNumber numberWithInt:1],@"pagecount",[NSNumber numberWithInt:10],@"pagesize",[NSNumber numberWithInt:100],@"sumcount", nil];
// NSMutableArray *array = [[NSMutableArray alloc] initWithObjects:parameter,@"json", nil];
[manager POST:@"http://121.42.40.105:8888/register.ashx" parameters:parameters success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"JSON====: %@", responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Error====: %@", error.description);
NSLog(@"返回值:",operation.responseString);
}];
标签:des style http color io os 使用 ar sp
原文地址:http://blog.csdn.net/beihai1212/article/details/39554189