UIAlertController
UIAlertAction
UIAlertAction(title: String?, style: UIAlertAction.Style, handler: ((UIAlertAction) -> Void)? = nil)
에서, handler
의 기능에 주목했다.handler
파라미터에 self.present()
를 통해 목표 뷰 컨트롤러의 이니셜라이저를 넣어 줬더니, 화면이 넘어가지 않고 멈췄다.NavigationController
의 존재 때문에 잘 안 된 것인지, 아니면 목표 뷰 컨트롤러에 static func push() { }
를 새로 정의해줘서 해당 뷰 컨트롤러의 전환을 용이하게 할지 고민했다.