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

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

Open
akshay-shah-dev opened this issue Dec 16, 2019 · 6 comments

Comments

@akshay-shah-dev
Copy link

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
Copy link

Hello,
did you get any solution?

@Pratikangar
Copy link

I have done

@akshay-shah-dev
Copy link
Author

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

@akshay-shah-dev
Copy link
Author

Hello,
did you get any solution?

@akshay-shah-dev
Copy link
Author

I have done

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

@kukushi
Copy link
Owner

kukushi commented May 25, 2020

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

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

No branches or pull requests

3 participants