예제 #1
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     NavBar.Delegate         = this;
     NoveltyList.Delegate    = this;
     NoveltyList.DataSource  = this;
     SelfView.FacesDetected += OnFacesDetected;
     SelfView.FacesRemoved  += OnFacesRemoved;
     CallView.AddGestureRecognizer(TapRecognizer);
     UpdateViews();
 }
예제 #2
0
        void ReleaseDesignerOutlets()
        {
            if (CallButton != null)
            {
                CallButton.Dispose();
                CallButton = null;
            }

            if (CallView != null)
            {
                CallView.Dispose();
                CallView = null;
            }

            if (NavBar != null)
            {
                NavBar.Dispose();
                NavBar = null;
            }

            if (NoveltyBottomConstraint != null)
            {
                NoveltyBottomConstraint.Dispose();
                NoveltyBottomConstraint = null;
            }

            if (NoveltyLeadingConstraint != null)
            {
                NoveltyLeadingConstraint.Dispose();
                NoveltyLeadingConstraint = null;
            }

            if (NoveltyList != null)
            {
                NoveltyList.Dispose();
                NoveltyList = null;
            }

            if (SelfView != null)
            {
                SelfView.Dispose();
                SelfView = null;
            }

            if (TapRecognizer != null)
            {
                TapRecognizer.Dispose();
                TapRecognizer = null;
            }
        }