json 열 변환

596 단어
 1. 
①:AFHTTPRequestOperationManager *requestManager = [AFHTTPRequestOperationManager manager];
②:requestManager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"text/html", nil];

2.     json  
①:        
NSData*data=[NSJSONSerialization dataWithJSONObject:dic options:NSJSONWritingPrettyPrinted error:nil]; 
②:        json 
NSString*jsonString=[[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];
3.             ,          ,         
NSString *_url = [_strUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];  


좋은 웹페이지 즐겨찾기