GithubHelp home page GithubHelp logo

Comments (5)

devkerby avatar devkerby commented on August 22, 2024 4

I have the same situation. I used tab bar navigation and want to use this lib. But it seems it doesn't work well.

from slidemenucontrollerswift.

thihaaung6245 avatar thihaaung6245 commented on August 22, 2024

May i suggest you something.If u want to use tab bar navigation,Dont use this library.You can change multiple views using tab bar view without using this library.But,if u want to use this library,dont use tab bar navigation.

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
 
        //instantiate storyboard
        var storyboard = UIStoryboard(name: "Main", bundle: nil)
        let mainViewController = storyboard.instantiateViewControllerWithIdentifier("MainViewController") as? MainViewController
        
        let leftViewController = storyboard.instantiateViewControllerWithIdentifier("LeftMenuViewController") as? LeftMenuViewController
        
        //Assigning main view as root view for appear when the application start to UINavigationController 
        let nvc: UINavigationController = UINavigationController(rootViewController: mainViewController!)
        leftViewController?.mainViewController=nvc
        
        //If u want to use slide menu,please declare this in AppDelegate.
        let slideMenuController = SlideMenuController(mainViewController: nvc, leftMenuViewController: leftViewController!)
        self.window?.backgroundColor = UIColor(red: 236.0, green: 238.0, blue: 241.0, alpha: 1.0)
        self.window?.rootViewController = slideMenuController
        self.window?.makeKeyAndVisible()
        return true
    }

So you storyboard must have 2 View Controllers for now.MainViewController and LeftMenuViewController.Please don't Navigation Controller embedded in your LeftMenuViewController.

If is there any problem.Tell me. :)

from slidemenucontrollerswift.

thihaaung6245 avatar thihaaung6245 commented on August 22, 2024

Or Try to debug view hierarchy

from slidemenucontrollerswift.

cezarsmpio avatar cezarsmpio commented on August 22, 2024

Nothing :/

@htarwara6245 How can I do this?

from slidemenucontrollerswift.

thihaaung6245 avatar thihaaung6245 commented on August 22, 2024

You can try learn these
http://code.tutsplus.com/tutorials/view-debugging-in-xcode-6--cms-22530
http://www.raywenderlich.com/98356/view-debugging-in-xcode-6
Hope this help.And don't forget my suggestion,too.Just try not to use this library if u r going to use tab view controller.Try to learn the design like ebay,wish.

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.