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; } }
public override void DidReceiveMemoryWarning() { base.DidReceiveMemoryWarning(); MaskedID.RemoveFromSuperview(); MaskedDOB.RemoveFromSuperview(); MaskedPhone.RemoveFromSuperview(); MaskedState.RemoveFromSuperview(); ReleaseDesignerOutlets(); }