Search code examples
swiftsidebarswrevealviewcontrollerdismiss

swrevealview controller side bar menu wont dismiss after open another view controller [swift]. How should i close it?


swrevealview controller side bar menu wont dismiss after open another view controller [swift]. How should i close it?


Solution

  • There is menu close event in that controller.

    You can manual close menu before you going to push other view controller in UINavigationcontroller.

    You can use below code and do some logic with your app navigation functionality.

    // Sets the frontViewController using a default set of chained animations consisting on moving the // presented frontViewController to the right most possition, replacing it, and moving it back to the left position

    - (void)pushFrontViewController:(UIViewController *)frontViewController animated:(BOOL)animated;