i have a array with data,i want to load the dictiionary type element with array......
NSArray *thisArray = [[NSArray alloc] initWithContentsOfFile:path];
NSSdictionary *state;
how to load the content with array....
any help appreciated...
i have a array with data,i want to load the dictiionary type element with array......
NSArray *thisArray = [[NSArray alloc] initWithContentsOfFile:path];
NSSdictionary *state;
how to load the content with array....
any help appreciated...
The usual pitfall is getting the path right for the file, other than that it is pretty straight forward... if I understand the question correctly
NSString* path = [[NSBundle mainBundle]pathForResource:@"someDataFile" ofType:@"plist"];
NSDictionary *state = [[NSDictionary alloc]initWithContentsOfFile:path];