public override void ViewDidDisappear(bool animated) { base.ViewDidDisappear(animated); foreach (NSObject handle in ObserverHandles) { NSNotificationCenter.DefaultCenter.RemoveObserver(handle); } ObserverHandles.Clear( ); KeyboardAdjustManager.Deactivate( ); }
public override void ViewWillDisappear(bool animated) { base.ViewWillDisappear(animated); // only process this if we're not entering fullscreen if (EnteringFullscreen == false) { MoviePlayer.Stop( ); foreach (NSObject handle in ObserverHandles) { NSNotificationCenter.DefaultCenter.RemoveObserver(handle); } ObserverHandles.Clear( ); } }