public override void DidSelectLinkWithURL(TTTAttributedLabel label, NSUrl url)
            {
                var stringUrl  = url.AbsoluteString;
                var tosUrl     = Phoebe.Build.TermsOfServiceUrl.ToString();
                var privacyUrl = Phoebe.Build.PrivacyPolicyUrl.ToString();

                if (stringUrl.Equals(tosUrl) || stringUrl.Equals(privacyUrl))
                {
                    url = new NSUrl(String.Format("{0}?simple=true", stringUrl));
                }
                WebViewController controller = new WebViewController(url);

                label.Window.RootViewController.PresentViewController(controller, true, null);
            }
示例#2
0
 public override void DidSelectLinkWithURL (TTTAttributedLabel label, NSUrl url)
 {
     var stringUrl = url.AbsoluteString;
     var tosUrl = Phoebe.Build.TermsOfServiceUrl.ToString ();
     var privacyUrl = Phoebe.Build.PrivacyPolicyUrl.ToString ();
     if (stringUrl.Equals (tosUrl) || stringUrl.Equals (privacyUrl)) {
         url = new NSUrl (String.Format ("{0}?simple=true", stringUrl));
     }
     WebViewController controller = new WebViewController (url);
     label.Window.RootViewController.PresentViewController (controller, true, null);
 }