I prepared a custom control to enter numeric values and in my control loading I added a observer to get the device orientation change like in the below code snippet.
Foundation.NSNotificationCenter.DefaultCenter.AddObserver(new NSString("UIDeviceOrientationDidChangeNotification"), this.DeviceRotated);
The above line causes a memory leak in my custom control. Does anyone know how to resolve the memory leak issue caused by adding a Observer.
I resolved the issue by disposing the NSObject as like in the code snippet.