I am using ECSlidingViewController to manage my slide to reveal menu.
When I first slide the menu over, none of the menu items are selected. Once I select an item, from this point on it will remain selected until I tap another menu item, as expected.
How can I make the first cell show as selected/highlighted when the app loads and the menu is swiped the first time?
Here is something that I tried but obviously it will ALWAYS select the first cell, so it is no good.
-(void)viewWillAppear:(BOOL)animated {
// assuming you had the table view wired to IBOutlet myTableView
// and that you wanted to select the first item in the first section
[self.menuTableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:NO scrollPosition:UITableViewScrollPositionTop];
}
Each time the menu is revealed, this method is called which then selects the first cell, regardless of which cell is supposed to be selected.
Any help would be great, thanks!