How to add BackButton Facility MFSlidemenu?

岁酱吖の 提交于 2019-12-02 14:43:08

问题


I have implemented MFSideMenu in my project .It works great, but now i want to implement back button facility to every view.

I try this but not working:

NSArray *array = [self.navigationController viewControllers];

[self.navigationController popToViewController:[array objectAtIndex:1] animated:YES];

回答1:


  • Here is the Solution

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


来源:https://stackoverflow.com/questions/39265673/how-to-add-backbutton-facility-mfslidemenu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!