1

I have used AMSideMenu in my project and performing segue(from navigation bar button and UIButton) to another view controller from home screen is very slow. Any idea why is it so?

I have used the following code in Appdelegate.m

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
    MFSideMenuContainerViewController *container = (MFSideMenuContainerViewController *)self.window.rootViewController;
    container.panMode = MFSideMenuPanModeNone;
    UINavigationController *navigationController = [storyboard instantiateViewControllerWithIdentifier:@"navigationController"];
    UIViewController *leftSideMenuViewController = [storyboard instantiateViewControllerWithIdentifier:@"leftSideMenuViewController"];
    [container setLeftMenuViewController:leftSideMenuViewController];
    [container setRightMenuViewController:nil];
    [container setCenterViewController:navigationController];

1 Answers1

0

Any idea why is it so?

Make sure you don't have "slow animations" turned on in the simulator by accident. It's the first item under the Debug menu:

debug menu

Caleb
  • 124,013
  • 19
  • 183
  • 272
  • It is not because of that.. i am running my app in my phone.But everything except that button works fine(without delay). – Faizal Malik Jan 20 '16 at 07:57