Present View Controller in Storyboard with a Navigation Controller - Swift

后端 未结 5 1304
眼角桃花
眼角桃花 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:14

     let secondViewController = self.storyboard?.instantiateViewControllerWithIdentifier("WelcomeID") as SecondViewController
    
            self.navigationController?.pushViewController(secondViewController, animated: true)
    

    Class Name is : SecondCiewController

    Identifier Name

提交回复
热议问题