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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -