johnyios johnyios - 2 months ago 12
iOS Question

how to go back in MFsidemenu?

i want to back on

MFSidemenu
there is no functionality to go back in
MFSidemenu


i have tried this but result:

[self.navigationController popToViewController:VC2 animated:YES];


and this

NSUInteger ownIndex = [self.navigationController.viewControllers indexOfObject:self];
[self.navigationController popToViewController:
[self.navigationController.viewControllers objectAtIndex:ownIndex - 2] animated:YES];

Answer

please check this link

HomeView *Home = [[HomeView alloc]initWithNibName:@"HomeView" bundle:nil];
NSArray *controllers = [NSArray arrayWithObject:Home];
self.navigationController.viewControllers = controllers;
Comments