SideMenu icon indicating copy to clipboard operation
SideMenu copied to clipboard

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

Open akshay-shah-dev opened this issue 5 years ago • 6 comments
trafficstars

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)
}

akshay-shah-dev avatar Dec 16 '19 06:12 akshay-shah-dev

Hello, did you get any solution?

Pratikangar avatar Jan 06 '20 13:01 Pratikangar

I have done

Pratikangar avatar Jan 06 '20 13:01 Pratikangar

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

akshay-shah-dev avatar Jan 13 '20 05:01 akshay-shah-dev

Hello, did you get any solution?

akshay-shah-dev avatar Jan 28 '20 06:01 akshay-shah-dev

I have done

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

akshay-shah-dev avatar Jan 28 '20 06:01 akshay-shah-dev

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

kukushi avatar May 25 '20 16:05 kukushi