//
City *city = self.dataList[indexPath.row];
//
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
dict = [NSMutableDictionary dictionaryWithDictionary:@{
// @"city":@"haha",
@"name":@"WLL"
//
}];
// nss
// dict[@"haha"] = @"nihao";
// NSLog(@"%@", dict[@"city"]);
// dict[@"city"] = city.province_name;
[dict setValue:city.province_name forKey:@"city"];
// dict["city"] = city.province_name;
// [dict setValue:@"qqqq" forKeyPath:@"city"];
// [dict setValue:city.province_name forKey:@"city"];
// dict[@city] = @"wll";
// [dict setValue:city.province_id forKey:];
// [dict setValue:@"hah" forKeyPath:@"city"];
// [di
// [dict setob]
// NSDictionary *dict = [NSDictionary dictionarywith]
// NSValue *value = [NSValue ]
NSData *data = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:nil];
NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"%@", string);
文章标题
最新推荐文章于 2022-10-30 12:21:08 发布