특정 화면에서 화면 회전에 대한 이벤트를 받으려면 어떻게 해야 할까? - 앱에서 화면 회전이 가능하나 iPhone의 세로보기 잠금을 해 놓은 상태라도 iPhone을 가로로 돌릴경우 이벤트는 발생된다. 1. NotificationCenter를 이용하여 Observer를 구성한다. // 아래 코드를 viewDidAppear 에 작성한다. // - 여기서 detectOrientation은 화면 회전 이벤트 발생시 호출할 함수 이다. NotificationCenter.default.addObserver(self, selector: #selector(self.detectOrientation), name: NSNotification.Name("UIDeviceOrientationDidChangeNotification..