There is a problem with functionality. She decided that I would receive all position changes from the application by receiving messages on UIDeviceOrientationDidChangeNotification .
But for the purity of the decision I need to call my function only when changing the position from portrait to landscape and vice versa. Or rather, before the application changes its orientation. But I did not find a solution how to do it.
Once again, the essence of the issue. You need to understand how to capture the moment before the application changes orientation.
So far, the thought has stopped on finding how to catch the current angle or something similar through NSNotificationCenter.DefaultCenter.AddObserver .
I would be very happy with any help. Already tried many solutions in a roundabout way, but did not give any sense.