ios - NSArray name from string -
i need make values of nsarray. every array must have unique name. i'm generating id code
cfuuidref newuniqueid = cfuuidcreate(kcfallocatordefault); nsstring * uuidstring = (__bridge nsstring*)cfuuidcreatestring(kcfallocatordefault, newuniqueid); cfrelease(newuniqueid);
now want create array name of uuidstring content. can realize it?
yes can make this
cfuuidref newuniqueid = cfuuidcreate(kcfallocatordefault); nsstring * uuidstring = (__bridge nsstring*)cfuuidcreatestring(kcfallocatordefault, newuniqueid); cfrelease(newuniqueid); nsmutabledictionary myarray=[[nsmutabledictionary alloc]init]; nsarray arr=[[nsarray alloc]initwithobjects: "do initializtation"]; [myarray setobject: arr forkey:uuidstring ];
Comments
Post a Comment