title: When adding observer to the UIView causes memory leak in xamarin iOS
body: <p>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.</p>
  <pre><code>Foundation.NSNotificationCenter.DefaultCenter.AddObserver(new NSString(&quot;UIDeviceOrientationDidChangeNotification&quot;), this.DeviceRotated);
  </code></pre>
  <p>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.</p>