Skip to content

Left/Right drawer content view jumps on initial opening (since iOS 8) #291

@nickafkhami

Description

@nickafkhami

Hey,

first of all thank you for providing this great code as open source. I have an issue that only occurs since iOS 8.

I am using the drawer controller as follows:

MMDrawerController *drawerController = [[MMDrawerController alloc] initWithCenterViewController:[menuViewController.viewControllers objectAtIndex:0] leftDrawerViewController:menuNavigationController];
    drawerController.showsShadow = NO;
    drawerController.openDrawerGestureModeMask = MMOpenDrawerGestureModeAll;
    drawerController.closeDrawerGestureModeMask = MMCloseDrawerGestureModeAll;
    drawerController.maximumLeftDrawerWidth = 268.0;
    [drawerController setDrawerVisualStateBlock:[MMDrawerVisualState parallaxVisualStateBlockWithParallaxFactor:2.0]];
    drawerController.animationVelocity = 1260.0;

"menuNavigationController" is simply a UINavigationController object with a UITableViewController as its root view controller.

Then, in the center view I have another UINavigationController containing a UITableViewController. In this center view, I use the drawer bar button item to toggle the drawer position with this statement:

[self.mm_drawerController toggleDrawerSide:MMDrawerSideLeft animated:YES completion:nil];

When I do this in iOS 8 for the first time after launch the UITableView cells in the left view first start under the navigation bar (so the first cell is not fully visible) and when the toggle animation is completed they drop down to start below the navigation bar without animation. It looks as if the view controller notices after the view did appear that it has a navigation bar and the content view must start below it.

This does not occur in iOS 7 and it does not occur when the drawer is toggled using a gesture instead of a button or when the drawer is toggled with a button after the initial time.

Any help will be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions