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); }
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); }