我只是想知道现代相当于什么:
NSNotificationCenter.DefaultCenter.AddObserver("UIDeviceOrientationDidChangeNotification", receivedRotate);
将会。它说它已经过时了,我应该使用 AddObserver,但我不确定要为 IntPtr 上下文变量使用什么。
我只是想知道现代相当于什么:
NSNotificationCenter.DefaultCenter.AddObserver("UIDeviceOrientationDidChangeNotification", receivedRotate);
将会。它说它已经过时了,我应该使用 AddObserver,但我不确定要为 IntPtr 上下文变量使用什么。