如何添加后退按钮设施MFSlidemenu



我已经在我的项目中实现了MFSideMenu。它工作得很好,但现在我想实现后退按钮设施到每个视图

我试了一下,但不工作:

NSArray *array = [self.navigationController viewControllers];
[self.navigationController popToViewController:[array objectAtIndex:1] animated:YES];
  • Here is the Solution

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

相关内容

  • 没有找到相关文章

最新更新