views:

37

answers:

1

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...

A: 

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]; 
Aaron Saunders
is not getting the data dictionary variable
lak in iphone
should be NSDictionary
Aaron Saunders