protected override void Dispose(bool disposing) { if (disposing) { if (flights != null) { flights.Dispose(); flights = null; } if (details != null) { details.Dispose(); details = null; } } base.Dispose(disposing); }
public FlightLogSplitViewController() { TabBarItem.Image = UIImage.FromBundle("Images/radar"); Title = "Flights"; details = new FlightDetailsViewController(); flights = new FlightViewController(); flights.DetailsViewController = details; details.RootViewController = flights; controllers = new UIViewController[] { new UINavigationController(flights), new UINavigationController(details), }; ViewControllers = controllers; WeakDelegate = details; }