gpt4 book ai didi

ios - NSMutableArray 中的 NSDictionary (iOS)

转载 作者:可可西里 更新时间:2023-11-01 03:35:56 25 4
gpt4 key购买 nike

<分区>

我需要以下结果:

(

"some_key" = {
"another_key" = "another_value";
};

);

为此,我有这段代码,但它不起作用:

NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:@"another_value", @"another_key", nil];
NSMutableArray *array = [[NSMutableArray alloc] init];
[array setValue:dictionary forKey:@"some_key"];

有什么想法吗?谢谢!

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com