I am trying to populate my array using Plist. This is my plist file,Menu.plist.
-Item 0, type: dictionary, value(1 item) - Title, string, Contacts
-Item 1, type: dictionary, value(1 item) - Title, string, Edit
- (void)viewDidLoad
{
[super viewDidLoad];
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"Menu" ofType:@"plist"];
self.menuArray = [NSMutableArray arrayWithContentsOfFile:plistPath];
}
I'm trying to populate my table view with cell Contacts and Edit but my menuArray is not getting loaded, I checked with NSLog and *plist is getting the path, but in self.menuArray its still shows 0 objects while it should be 2. I have done this before and it has worked fine I dont know what has gone wrong today. Any suggestions???