dekatotoro / dekatotoro/SlideMenuControllerSwift

openRight not opening menu

Open
#272 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
3.4k
Forks
742
PR merge metrics
No merged PRs in 30d

Description

Hello, I'm new in IOS. I have followed all the instructions but openRight function not working. See below my code.

In app delegate
```

let mainViewController = storyboard.instantiateViewControllerWithIdentifier("ViewController") as! ViewController
let rightViewController = storyboard.instantiateViewControllerWithIdentifier("RightViewController") as! RightViewController
let nvc: UINavigationController = UINavigationController(rootViewController: mainViewController)

let slideMenuController = SlideMenuController(mainViewController:nvc,rightMenuViewController: rightViewController)

slideMenuController.delegate = mainViewController.delegate
SlideMenuOptions.contentViewOpacity = 0
SlideMenuOptions.contentViewScale = 1
SlideMenuOptions.hideStatusBar = false

self.window?.rootViewController = slideMenuController
self.window?.makeKeyAndVisible()
return true
```

In my ViewController
`
// MARK : Actions
@IBAction func slideButtonOnclick(_ sender: Any) {
if self.isRightOpen(){
self.closeRight()
}
else{
print ("OKOK")

self.openRight()
}
}

`

Please need help

Thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue from the app delegate setup and the ViewController slideButtonOnclick action shown in the report. Trace whether the button reaches openRight() and compare the configured rightViewController with the library's expected setup; done means tapping the button opens the right menu.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.