void ReleaseDesignerOutlets() { if (ExpiredDateLabel != null) { ExpiredDateLabel.Dispose(); ExpiredDateLabel = null; } if (ExpireInfoButton != null) { ExpireInfoButton.Dispose(); ExpireInfoButton = null; } if (ExpireInfoView != null) { ExpireInfoView.Dispose(); ExpireInfoView = null; } if (FilterNavigationBar != null) { FilterNavigationBar.Dispose(); FilterNavigationBar = null; } if (FilterSegmentControl != null) { FilterSegmentControl.Dispose(); FilterSegmentControl = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); TagFilterView tfv = new TagFilterView(15, 280, 7); tfv.UserInteractionEnabled = true; tfv.AddGestureRecognizer(new UITapGestureRecognizer(delegate() { TagTableViewController ttvc = new TagTableViewController(); UIPopoverController tagFilterPopover = new UIPopoverController(ttvc); tagFilterPopover.BackgroundColor = UIColor.White; tagFilterPopover.SetPopoverContentSize(new CoreGraphics.CGSize(320, 320), true); AppDisplayUtil.Instance.SetPopoverController(tagFilterPopover); tagFilterPopover.PresentFromRect(new CoreGraphics.CGRect(0, 0, 30, 30), tfv, UIPopoverArrowDirection.Up, true); })); FilterNavigationBar.Add(tfv); }