コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (MaskedDOB != null)
            {
                MaskedDOB.Dispose();
                MaskedDOB = null;
            }

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

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

            if (MaskedState != null)
            {
                MaskedState.Dispose();
                MaskedState = null;
            }
        }
コード例 #2
0
 public override void DidReceiveMemoryWarning()
 {
     base.DidReceiveMemoryWarning();
     MaskedID.RemoveFromSuperview();
     MaskedDOB.RemoveFromSuperview();
     MaskedPhone.RemoveFromSuperview();
     MaskedState.RemoveFromSuperview();
     ReleaseDesignerOutlets();
 }