我有登錄,註冊和重置viewControllers我已經連接UInavigation控制器登錄控制器,但當我去其他視圖控制器通過點擊像signup
或reset password
按鈕,目標控制器出現沒有導航欄。當我點擊下面的按鈕時,幫助編程式地包含導航欄。如何添加導航欄編程方式通過點擊按鈕
@IBAction func signupButton(_ sender: Any) {
let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let newViewController = storyBoard.instantiateViewController(withIdentifier: "SignUpViewController") as! SignUpViewController
self.present(newViewController, animated: true, completion: nil)
}
結帳我的回答 –