public override void ViewDidUnload () { base.ViewDidUnload (); if (searchDisplayController != null) { searchDisplayController.Dispose (); searchDisplayController = null; } if (searchDisplayDelegate != null) { searchDisplayDelegate.Dispose (); searchDisplayDelegate = null; } if (tableViewDataSource != null) { tableViewDataSource.Dispose (); tableViewDataSource = null; } if (tableViewDelegate != null) { tableViewDelegate.Dispose (); tableViewDelegate = null; } if (searchBar != null) { searchBar.Dispose (); searchBar = null; } }
public AllInOneTableViewController (UITableViewStyle style) : base (style) { searchDisplayDelegate = new AllInOneSearchDisplayDelegate (this); tableViewDataSource = new AllInOneTableViewDataSource (this); tableViewDelegate = new AllInOneTableViewDelegate (this); ClearsSelectionOnViewWillAppear = false; }