void ReleaseDesignerOutlets()
        {
            if (LoginBtn != null)
            {
                LoginBtn.Dispose();
                LoginBtn = null;
            }

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

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

            if (SearchBackgroundView != null)
            {
                SearchBackgroundView.Dispose();
                SearchBackgroundView = null;
            }
        }
Example #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            //Show Gif from webview
            LoginGifWebView.LoadRequest(new NSUrlRequest(new NSUrl(Common.Variables.ImgUrl)));
            UIImageView welcomeView = new UIImageView();

            welcomeView.Frame       = LoginGifWebView.Frame;
            welcomeView.Image       = Common.Common.FromUrl(Common.Variables.ImgUrl);
            welcomeView.ContentMode = UIViewContentMode.ScaleAspectFit;
            LoginGifWebView.AddSubview(welcomeView);
            View.AddSubview(loadingView);
            UITask();


            // Perform any additional setup after loading the view, typically from a nib.
            // If was send true to Profile.EnableUpdatesOnAccessTokenChange method
            // this notification will be called after the user is logged in and
            // after the AccessToken is gotten
            Profile.Notifications.ObserveDidChange((sender, e) => {
                if (e.NewProfile == null)
                {
                    return;
                }
                if (e.NewProfile.Name == "賴柔安")
                {
                    ProfileName.Text = "Hi! " + e.NewProfile.Name + "大美女";
                }
                nameLabel.Text = e.NewProfile.Name;
            });
        }