public override void ViewDidLoad () { base.ViewDidLoad (); postFeedTableViewController = (PostFeedTableViewController)Container.ViewControllers [0]; postFeedTableViewController.Target = FeedTypeEnum.FeedType.SearchHashFeed; postFeedTableViewController.Master = this; postFeedTableViewController.EmptyTableString = Strings.no_active_posts; ListOfTableViewController = (ListOfTableViewController)Container.ViewControllers [1]; ListOfTableViewController.Target = FeedTypeEnum.FeedType.SearchListOfFeed; ListOfTableViewController.EmptyTableString = Strings.no_users_found; ListOfTableViewController.Master = this; SearchBar.Layer.BorderColor = UIColor.Clear.CGColor; SearchBar.BackgroundImage = new UIImage (); UITextField.AppearanceWhenContainedIn (new Type[] { typeof(UISearchBar) }).BackgroundColor = UIColor.White; SearchBar.SearchButtonClicked += (object sender, EventArgs e) => { SearchButtonClicked(); }; SearchBar.TextChanged -= SearchBar_TextChanged; SearchBar.TextChanged += SearchBar_TextChanged; if (String.IsNullOrEmpty (IncommingTagForSearch)) { UsersButtonClicked (UsersButton); } else { TagsButtonClicked (TagsButton); SearchBar.Text = IncommingTagForSearch; SearchButtonClicked (); } }
//public override nfloat GetHeightForRow (UITableView tableView, Foundation.NSIndexPath indexPath) //{ // return ListOfTableViewCell.DefaultHeight; //} protected override void Dispose (bool disposing) { base.Dispose (disposing); if (disposing) { Master.Dispose (); Master = null; } }
public ListOfFeedTableViewSource (ListOfTableViewController master) { Master = master; }
protected override void Dispose (bool disposing) { base.Dispose (disposing); if (disposing) { ListOfTableViewController.Dispose (); ListOfTableViewController = null; Container.Dispose (); Container = null; } }