I use data.plist for populating UITableView. And I need to add cells with titles from String in the Dictionary and in the Array. How can i do it?
Root
--Array
-----Dictionary
-------**String**
-------Array2
-----Dictionary
-------**String**
-------Array2
I am using this code in viewDidLoad:
NSString *path = [[NSBundle mainBundle] pathForResource:@"Data"
ofType:@"plist"];
NSDictionary *dictionary = [[NSDictionary alloc] initWithContentsOfFile:path];
_mathArray = [dictionary objectForKey:@"Title"];
But it loads String, and String2
Root
--Array
-----Dictionary
-------String2
-------Array2
-----Dictionary
-------String2
-------Array2
-----**String**