Click here to Skip to main content
15,885,878 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Char like é Render as ?

Code is

C#
using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.CodeDom.Compiler;
using PoolExpert.Mobile.Library.Utilities;
using System.IO;
using System.Text;
using System.Web;

namespace PoolExpert.Mobile.iOS
{
    partial class TermsAndConditionController : UIViewController
    {
        public TermsAndConditionController(IntPtr handle)
            : base(handle)
        {
        }

        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            this.View.TintColor = UIColor.White;
            this.cancelButton.Clicked += cancelButton_Clicked;
            this.cancelButton.TintColor = UIColor.White;
            this.Title = Localization.GetString("TermsOfUse");
            UITextAttributes attr = new UITextAttributes();
            attr.TextColor = UIColor.White;
            this.NavigationController.NavigationBar.SetTitleTextAttributes(attr);
            var webView = new UIWebView(View.Bounds);
            View.AddSubview(webView);
            var html = "<html><body><br /><br /><br /><p>Conditions d’utilisation de l’application <br /> Les conditions énoncées dans la présente (ci-après collectivement l’ « entente ») constituent l’entente entre vous et Québecor Média inc. faisant affaires sous  Pour pouvoir utiliser l’application, vous devez accepter les conditions qui suivent. En  téléchargeant, installant ou utilisant l’application proposée par QMI dont l’objectif  la présente entente.</p></body></html>";
            webView.LoadHtmlString(html.ToString(), NSBundle.MainBundle.BundleUrl);
        }

        void cancelButton_Clicked(object sender, EventArgs e)
        {
            DismissViewController(true, null);
        }
    }
}
Posted
Updated 1-Sep-14 1:09am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900