public void RemoveDashboardFloatMenu(bool forceHide = false) { if (floatMenu != null) { floatMenu.RemoveFromSuperview(); floatMenu.Dispose(); floatMenu = null; } }
public override void ViewWillDisappear(bool animated) { base.ViewWillDisappear(animated); if (floatMenu != null) { floatMenu.RemoveFromSuperview(); floatMenu.Dispose(); floatMenu = null; } UIDevice.CurrentDevice.EndGeneratingDeviceOrientationNotifications(); if (rotationNotification != null) { NSNotificationCenter.DefaultCenter.RemoveObserver(this, new NSString("UIDeviceOrientationDidChangeNotification"), null); } }