Commit 7c8d210f by pierce

fixed bugs

parent 530713ed
...@@ -68,7 +68,7 @@ class LoginByPhoneWithPasswordViewController: BaseViewController { ...@@ -68,7 +68,7 @@ class LoginByPhoneWithPasswordViewController: BaseViewController {
self.view.addSubview(phoneTextField) self.view.addSubview(phoneTextField)
if let arr : Array<Dictionary<String, Any>> = UserDefaults.standard.array(forKey: GDUserManagerPublicUDKey.historyUserArray) as? Array<Dictionary<String, Any>> { if let arr : Array<Dictionary<String, Any>> = UserDefaults.standard.array(forKey: GDUserManagerPublicUDKey.historyUserArray) as? Array<Dictionary<String, Any>> {
if let latestUser = arr.first { if let latestUser = arr.last {
phoneTextField.text = latestUser["phone"] as? String phoneTextField.text = latestUser["phone"] as? String
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment