Hi i have an dictionary which is been set by me and am accessing it the code is as follows.
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);
current output:
{
1 = xcode;
2 = ipad;
3 = ios;
4 = simulator;
5 = iphone;
}
but i want
{
1 = xcode;
3 = ios;
2 = ipad;
5 = iphone;
4 = simulator;
}
i want the dictionary as i set the object in it
i dont want to make the dictionary to sort according to it
Pls Help
Thanks in advance.....