2016/121 iOS swift3로 화면 이동하기 storyboard 를 사용해서 간단하게 화면이동이 가능하지만, 조건문과 함께 사용할때는 코드로 이동하는 것이 편할때가 있다. 같은 스토리보드내에 있는 다른 뷰로 이동하는 경우// nextViewController.swift 인 경우let storyboard: UIStoryboard = self.storyboard!let nextView = storyboard.instantiateViewController(withIdentifier: "nextViewController")self.present(nextView, animated: true, completion: nil) 현재와 다른 스토리보드에 있는 뷰로 이동하는 경우xcode 상에서 is Initial View Controller 에 체크를 해도 되지만.. 2016. 12. 15. 이전 1 다음 반응형