개발/아이오에스

ios swift] 이전 뷰로 이동하기 (코드)

dev.jake 2021. 1. 18. 21:24

self.navigationController?.popViewController(animated: true)

 

right 액션일 때 해당 데이터를 지우고 다시 이전에 뷰로 돌아가고 싶을 때 이렇게 self.navigationController?.popViewController(animated: true) 으로 처리를 해줬다.