kukushi / SideMenu

An interactive iOS side menu with rich features.
MIT License
788 stars 123 forks source link

Not get Navigation controller for push another view controller from any other view controller. . #96

Open akshay-shah-dev opened 4 years ago

akshay-shah-dev commented 4 years ago

I have multiple storyboard => by clicking on sidemenu item open a new screen same as your provided demo =>than after on same viewController click on button I have to navigate to next screen but not getting navigation controller so I'm not able to Push another view controller.

var KFirstOriginate : String {
    get {
        return "Main"
    }
}

var KSecondOriginate : String {
    get {
        return "PK"
    }
}

struct Main {
    static let FirstOriginate = UIStoryboard(name: KFirstOriginate, bundle: nil)
    static let SecondOriginate = UIStoryboard(name: KSecondOriginate, bundle: nil)
}

@IBAction func btnPush(_ sender: Any) {
let viewController = Main.SecondOriginate.instantiateViewController(withIdentifier: "FeedbackVC") as! FeedbackVC navigationController?.pushViewController(viewController, animated: true)
}

Pratikangar commented 4 years ago

Hello, did you get any solution?

Pratikangar commented 4 years ago

I have done

akshay-shah-dev commented 4 years ago

No i did not get any solution. Please share with me your code.

akshay-shah-dev commented 4 years ago

Hello, did you get any solution?

akshay-shah-dev commented 4 years ago

I have done

i did not get any solution. Please share with me your code.

kukushi commented 4 years ago

I'm not 100% sure what's the problem, but in most cases, you may need to create the navigation controlelr manually.