예제 #1
0
        void ReleaseDesignerOutlets()
        {
            if (EmailTxt != null)
            {
                EmailTxt.Dispose();
                EmailTxt = null;
            }

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

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

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

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

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

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

            if (UyeOlButton != null)
            {
                UyeOlButton.Dispose();
                UyeOlButton = null;
            }
        }
예제 #2
0
        void SozlesmeMetniOlustur()
        {
            Sozlesmelabel.Text = "Giriş yaparak Gizlilik Politikası ve Kullanım Koşullarını kabul etmiş sayılırsınız.";
            var text = Sozlesmelabel.Text;

            var underlineAttriString = new NSMutableAttributedString(text);

            underlineAttriString.BeginEditing();

            underlineAttriString.AddAttribute(UIStringAttributeKey.Font, UIFont.SystemFontOfSize(17), new NSRange(0, underlineAttriString.Length));

            var range1 = getRangeOfString(text, "Kullanım Koşullarını");

            underlineAttriString.AddAttribute(UIStringAttributeKey.UnderlineStyle, NSNumber.FromInt32((int)NSUnderlineStyle.Single), range1);



            var range2 = getRangeOfString(text, "Gizlilik Politikası");

            underlineAttriString.AddAttribute(UIStringAttributeKey.UnderlineStyle, NSNumber.FromInt32((int)NSUnderlineStyle.Single), range2);

            underlineAttriString.EndEditing();
            Sozlesmelabel.UserInteractionEnabled = true;
            Sozlesmelabel.AttributedText         = underlineAttriString;


            UITapGestureRecognizer tapGesture = new UITapGestureRecognizer((tap) =>
            {
                if (didTapAttributedTextInLabel(tap, Sozlesmelabel, range1))
                {
                    //ShowAlert("Terms & Conditions");
                    UIApplication.SharedApplication.OpenUrl(new NSUrl("http://buptis.com/assets/doc/buptis_kullanim-kosullari.pdf"));//
                }

                else if (didTapAttributedTextInLabel(tap, Sozlesmelabel, range2))
                {
                    //ShowAlert("Privacy Policy");
                    UIApplication.SharedApplication.OpenUrl(new NSUrl("http://buptis.com/assets/doc/buptis_gizlilik-politikasi.pdf"));
                }
            });

            Sozlesmelabel.AddGestureRecognizer(tapGesture);
        }