示例#1
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);
            LayoutSubviews();

            if (!IOS.IsGoogleReachable())
            {
                BTProgressHUD.ShowErrorWithStatus("No Internet Connection");

                NSTimer.CreateScheduledTimer(2d, delegate {
                    BTProgressHUD.Dismiss();
                });
            }
            else
            {
                _webView.LoadRequest(new NSUrlRequest(new NSUrl(_url)));
            }
        }
示例#2
0
        public override void ViewDidLoad()
        {
            try {
                this.InitLeftButton();
                Title = "About Stacklash";

                var user = Config.CurrentUser;
                if (user == null)
                {
                    AddValue1FixedRow("User", "Not Logged-in");
                }
                else
                {
                    AddValue1FixedRow("User", user.NameDecoded);
                }

                AddValue1FixedRow("App Version", IOS.GetBundleVersion());
                AddValue1FixedRow("iOS Version", IOS.GetIOSVersion());
                AddSubtitleFixedRow("Device Name", IOS.GetDeviceName());
                AddSubtitleFixedRow("Device Type", IOS.GetDeviceVersion().ToString());
                AddSubtitleFixedRow("Bundle Identifier", IOS.GetBundleIdentifier());

                AddRow(new ButtonRow {
                    Text   = "Send Feedback",
                    Action = delegate {
                        new MailSender(this).Show(subject: "Stacklash Feedback", to: Config.FeedbackEmail);
                    }
                });

                AddRow(new ButtonRow {
                    Text   = "Clear Image Cache",
                    Action = delegate {
                        SDWebImage.SDImageCache.SharedImageCache.ClearMemory();
                        SDWebImage.SDImageCache.SharedImageCache.ClearDisk();
                    }
                });

                base.ViewDidLoad();
            }
            catch (Exception ex) {
                this.UnhandledError(ex);
            }
        }