iphone - Convert a NSString into a NSArray -



iphone - Convert a NSString into a NSArray -

i received info json web service , converted nsarray. i've saved nsarray in database retrieval @ later date. info in database looks this:

( { responsecount = 2; responsetotal = 8; }, { responsecount = 6; responsetotal = 8; } )

now i'm @ point want take info , turn nsarray. seek doing along lines of

nsarray *responsearray = self.coredatatable.responsearray; //nsstring value

or

nsarray *responsearray = (nsarray *) self.coredatatable.responsearray; //nsstring value

but when runs, nsarray comes no objects in it. ideas wrong?

code clarify info saving process.

coredatatable *coredatatable = [nsentitydescription insertnewobjectforentityforname:@"coredatatable" inmanagedobjectcontext:self.managedobjectcontext]; coredatatable.categoryname = [d objectforkey: @"categoryname"]; coredatatable.responsearray = [d objectforkey: @"responsearray"]; [self.managedobjectcontext save:nil];

iphone objective-c xcode nsstring nsarray

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -