Beispiel #1
0
        private void Btn_TouchUpInside(object sender, EventArgs e)
        {
            var btn = sender as UIButton;

            if (btn != null)
            {
                switch (btn.Tag)
                {
                //(点击了重设按钮)
                case (int)buttonTag.buttonTagReset:
                    // 1.隐藏按钮
                    resetBtn.Hidden = true;
                    // 2.infoView取消选中
                    InfoViewDeselectedSubviews();
                    // 3.msgLabel提示文字复位
                    msgLabel.ShowNormalMsg(PCCircleViewConst.gestureTextBeforeSet);
                    // 4.清除之前存储的密码
                    PCCircleViewConst.ResetGesturePassWord();
                    break;

                //点击了管理手势密码按钮
                case (int)buttonTag.buttonTagManager:
                    break;

                //点击了登录其他账户按钮
                case (int)buttonTag.buttonTagForget:
                    break;

                default:
                    break;
                }
            }
        }
Beispiel #2
0
 public override void ViewWillAppear(bool animated)
 {
     base.ViewWillAppear(animated);
     if (type == GestureViewControllerType.GestureViewControllerTypeLogin)
     {
         NavigationController.SetNavigationBarHidden(true, animated);
     }
     else
     {
         // 进来先清空存的第一个密码
         PCCircleViewConst.ResetGesturePassWord();
     }
 }