嗨,我有一本由我设置的字典,正在访问它,代码如下。
NSMutableDictionary* filteredDictionary = [NSMutableDictionary dictionary];
[filteredDictionary setObject:@"xcode" forKey:@"1"];
[filteredDictionary setObject:@"ios" forKey:@"3"];
[filteredDictionary setObject:@"ipad" forKey:@"2"];
[filteredDictionary setObject:@"iphone" forKey:@"5"];
[filteredDictionary setObject:@"simulator" forKey:@"4"];
NSLog(@"%@",filteredDictionary);
电流输出:
{
1 = xcode;
2 = ipad;
3 = ios;
4 = simulator;
5 = iphone;
}
but i want
{
1 = xcode;
3 = ios;
2 = ipad;
5 = iphone;
4 = simulator;
}
我想要字典,因为我在其中设置对象
我不想让字典根据它进行排序
请帮助
提前致谢.....