From cf35390359c8c5c02f9b74527a2397d93833d095 Mon Sep 17 00:00:00 2001 From: 葛建军 Date: Thu, 25 May 2017 14:56:45 +0800 Subject: [PATCH] no message --- YouerLiveVideo/YouerLiveVideo/controllers/HomePage/HomePage.storyboard | 6 ++---- YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/Login.storyboard | 12 +++++++----- YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/NewLoginViewController.swift | 9 +++------ 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/YouerLiveVideo/YouerLiveVideo/controllers/HomePage/HomePage.storyboard b/YouerLiveVideo/YouerLiveVideo/controllers/HomePage/HomePage.storyboard index 5a2f7a4..f8d765c 100644 --- a/YouerLiveVideo/YouerLiveVideo/controllers/HomePage/HomePage.storyboard +++ b/YouerLiveVideo/YouerLiveVideo/controllers/HomePage/HomePage.storyboard @@ -48,10 +48,7 @@ @@ -1015,6 +1015,8 @@ + + diff --git a/YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/NewLoginViewController.swift b/YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/NewLoginViewController.swift index 938f54d..b3cf4f9 100644 --- a/YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/NewLoginViewController.swift +++ b/YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/NewLoginViewController.swift @@ -19,8 +19,6 @@ class NewLoginViewController: UIViewController,UITextFieldDelegate { constraintContentOffset.constant=20 view.backgroundColor=UIColorFromRGB(0xf7f7f7) Theme.configButton(buttonLogin) - let lastAccount=Setting.getString("lastAccountNumber") - fieldAccount.text=lastAccount } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) @@ -39,7 +37,7 @@ class NewLoginViewController: UIViewController,UITextFieldDelegate { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } - @IBAction func onLoginClicked(sender: AnyObject) { + @IBAction func onLoginClicked(_ sender: UIButton) { self.view.endEditing(true) let account=fieldAccount.text let pw=fieldPassword.text @@ -110,12 +108,11 @@ class NewLoginViewController: UIViewController,UITextFieldDelegate { self.navigationController!.popViewController(animated: true) } - - @IBAction func activatiAction(sender: UIButton) { + @IBAction func forgetPassword(_ sender: UIButton) { let vc = Story.instantiateViewControllerWithIdentifier("ChangePassWordViewControllerVC", storyName: "User") as! ChangePassWordViewController self.navigationController?.pushViewController(vc, animated: true) } - @IBAction func returnAction(sender: UIButton) { + @IBAction func registerAccount(_ sender: UIButton) { let vc = UIStoryboard(name: "Login", bundle: nil).instantiateViewController(withIdentifier: "RegisterViewControllerVC") as! RegisterViewController self.navigationController!.pushViewController(vc, animated: true) } -- libgit2 0.21.0