Present View Controller in Storyboard with a Navigation Controller - Swift

后端 未结 5 1303
眼角桃花
眼角桃花 2021-01-30 10:30

I am currently showing a viewController in my new storyboard below:

var storyboard : UIStoryboard = UIStoryboard(name: AccountStoryboard, bundle: nil)
var vc : W         


        
5条回答
  •  抹茶落季
    2021-01-30 11:20

    let storyboard = UIStoryboard(name: "Main", bundle: nil)
    let vc = storyboard.instantiateViewController(withIdentifier: "SalesVC") as! SalesVC
    
    navigationController?.pushViewController(vc, animated: true)
    

提交回复
热议问题