Open yoogail105 opened 2 years ago
guard let secondVC = self.storyboard?.instantiateViewController(withIdentifier: "SecondViewController") as? SecondViewController else {
return
}
self.navigationController?.pushViewController(secondVC, animated: true)
뒤로
버튼이 자동으로 생성_ = self.navigationController?.popViewController(animated: true)
dismiss
와 상호작용하지 않음_
: 반환값이 필요하지 않다는 것을 명시적으로 표시
4.4 화면전환: 네비게이션 컨트롤러
🍯 UINavigationController
RootViewController
Navigation Stack
pushViewController(_:animated:)
popViewController(_:animated:)
Embed In