ios - Fast Enumeration with NSMutableDictionary -


i found weird issue 64 bit platform, when tried enumerate nsmutabledictionary.i have code follows,

nsmutabledictionary *dictionary = [nsmutabledictionary dictionary]; nsarray *expectedkeysarray = [nsarray arraywithobjects:@"k1", @"k2", @"k3", @"k4", @"k5", nil]; nsarray *expectedvaluesarray = [nsarray arraywithobjects:@"v1", @"v2", @"v3", @"v4", @"v5", nil]; (int = 0; < [expectedkeysarray count]; i++) {     [dictionary setobject:[expectedvaluesarray objectatindex:i]                         forkey:[expectedkeysarray objectatindex:i]]; }  (nsstring *key in dictionary) {     nslog(@"key %@",key);  } 

when ran above code in 32 bit simulator,line within loop

 nslog(@"key %@",key); 

is getting executed , fast enumeration works fine.but when run above code in 64 bit simulator, doesn't enter loop , fast enumeration doesn't work.did face similar issue?.i'm using xcode 5.1,with ios 7.1


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -