用帶navigationController方式跳轉(zhuǎn)
let storyboard = UIStoryboard(name: "AccountInfo", bundle: nil)
let optVerifVC = storyboard.instantiateViewController(withIdentifier: "accountOTPVC") as! AccoutInfoVerifyCodeViewController
optVerifVC.Modeltype = "cominfo" //傳值
PUSH方式跳轉(zhuǎn)
self.navigationController?.pushViewController(optVerifVC, animated: true)
PRESENT方式跳轉(zhuǎn)
self.navigationController?.present(optVerifVC, animated: true, completion: nil)
轉(zhuǎn)場(chǎng)動(dòng)畫方式
optVerifVC.modalPresentationStyle = UIModalPresentationStyle.automatic
UIStoryboard方式跳轉(zhuǎn)
以button為例 按住control拖到想要跳轉(zhuǎn)到界面即可

storyboard跳轉(zhuǎn)方式.png