GithubHelp home page GithubHelp logo

Comments (5)

sairamkotha avatar sairamkotha commented on July 21, 2024

I am facing same issue..Did u solve this issue?

from slidemenucontrollerswift.

Jthami05 avatar Jthami05 commented on July 21, 2024

@salramkotha, sorry to get to you late. If you're still having the problem, I believe I managed to fix it by inserting

dispatch_async(dispatch_get_main_queue(), {
               let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
                appDelegate.createMenuView()
                })

inside my LogInViewController.swift's if (success for login condition) { } check, immediately after dismissing the view controller (also within the if block). It might be messy or non-ideal, but it gets the job done.

from slidemenucontrollerswift.

sairamkotha avatar sairamkotha commented on July 21, 2024

in app delegate createmenuview() can u share code of create menu view I am using view in view controller how to activate that viewcontroller?

from slidemenucontrollerswift.

Jthami05 avatar Jthami05 commented on July 21, 2024
func createMenuView() {
let storyboard = UIStoryboard(name: "Main", bundle: nil)

    let leftViewController = storyboard.instantiateViewControllerWithIdentifier("LeftViewController") as! LeftViewController
    let tableViewController = storyboard.instantiateViewControllerWithIdentifier("TableViewController") as! TableViewController
    let nvc: UINavigationController = UINavigationController(rootViewController: tableViewController)

    leftViewController.homeViewController = nvc

    let slideMenuController = SlideMenuController(mainViewController: nvc, leftMenuViewController: leftViewController) // SlideMenuController.mainViewController is the entry point.

    self.window?.rootViewController = slideMenuController
    self.window?.makeKeyAndVisible()
}

It should be roughly the same as what's given by dekatotoro, except with a navigationController containing the tableViewController. So the first parameter of SlideMenuController is that navigationController.

from slidemenucontrollerswift.

sairamkotha avatar sairamkotha commented on July 21, 2024

Thank you. will try this :)

from slidemenucontrollerswift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.