Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when trying to open the slide window #45

Open
jyounus opened this issue Jun 16, 2015 · 2 comments
Open

Issue when trying to open the slide window #45

jyounus opened this issue Jun 16, 2015 · 2 comments

Comments

@jyounus
Copy link

jyounus commented Jun 16, 2015

Hey there,

Thanks for making this, it's exactly the effect I've been looking for!

I have a problem trying to integrate this with my project. This is my current app structure:
Navigation Controller -> MainViewController

Inside MainViewController I have a button that calls:

let vc = self.storyboard?.instantiateViewControllerWithIdentifier("GoalVC") as! GoalViewController
self.navigationController?.pushViewController(vc, animated: true)

Now inside this GoalViewController instance, I want to show this slide menu controller from the right. I do this on a tableview cell selection:

initFormSheet()
if let mySlideMenuController = self.mySlideMenuController {
       mySlideMenuController.openRight()
}

This is the initFormSheet function:

var mySlideMenuController : SlideMenuController?
    func initFormSheet() {
        if mySlideMenuController == nil {
            let formSheet = self.storyboard?.instantiateViewControllerWithIdentifier("DisposableCategoriesVC") as! UIViewController
            mySlideMenuController = SlideMenuController(mainViewController: self, rightMenuViewController: formSheet)
        }
    }

The problem is, when the tableview cell is tapped and the above code is executed, nothing happens. My status bar gets hidden, but I don't see any view controller sliding from the right. Can you help me out here please? Can you tell me what I'm doing wrong?

I don't want to use your library for the root window, instead this is inside of a navigation controller sub window.

Thanks

@lazarte
Copy link

lazarte commented Jun 17, 2015

Same issue here. Do know how to fix this?

@pmusolino
Copy link
Collaborator

Can you try using toggleRight() with the latest version of the library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants