Questions tagged «nsmutabledictionary»

7
用于Objective-C中用于访问NSMutable字典的每个循环
我在访问Objective-C中的可变字典键和值时遇到了一些困难。 假设我有这个: NSMutableDictionary *xyz=[[NSMutableDictionary alloc] init]; 我可以设置键和值。现在,我只想访问每个键和值,但是我不知道设置的键数。 在PHP中非常简单,如下所示: foreach ($xyz as $key => $value) 在Objective-C中怎么可能?



By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.