Ram*_*vam 11
//VC1
@IBAction func presentVC2() {
let vc2 = VC2()
vc2.modalPresentationStyle = .fullScreen
self.present(vc2, animated: true, completion: nil)
}
//VC2
@IBAction func presentVC3() {
let vc3 = VC3()
let navController = UINavigationController(rootViewController: vc3) //Add navigation controller
navController.modalPresentationStyle = .fullScreen
self.present(navController, animated: true, completion: nil)
}
//VC3
@IBAction func navigationVC4() {
let vc4 = VC4()
self.navigationController?.pushViewController(vc4, animated: true)
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8704 次 |
| 最近记录: |