1.故事板不用連線的跳轉(zhuǎn)
//“Main” 是故事版的名字,切記是故事版的颠锉,不是頁面的id
//“ApproveOwnerViewController” 頁面的id
let approveOwnerViewController = UIStoryboard(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "ApproveOwnerViewController") as! ApproveOwnerViewController
self.navigationController?.pushViewController(approveOwnerViewController, animated: true)
2.故事板連線跳轉(zhuǎn)英上,看圖
1.連線
2.選擇show
3.設(shè)置id和選擇kind
這里寫圖片描述
4.一句代碼
這里寫圖片描述
5.效果
這里寫圖片描述
這里寫圖片描述