字典转换成NSString(NSJson)

//字典转换成字符串

NSDictionary *dict = [NSMutableDictionary dictionary];

NSData *data = [NSJSONSerialization dataWithJSONObject:dict options:false error:nil];

NSString *name = [[NSString alloc]  initWithData:data encoding:NSUTF8StringEncoding];

你可能感兴趣的:(字典转换成NSString(NSJson))