Commit 1c2881a3 authored by pete谢兆麟's avatar pete谢兆麟

验证码结果页键盘处理

parent b7e98248
...@@ -33,6 +33,11 @@ class YHCodeSueecssViewController: YHBaseViewController { ...@@ -33,6 +33,11 @@ class YHCodeSueecssViewController: YHBaseViewController {
startTime() startTime()
} }
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
smscodeView.textField.becomeFirstResponder()
}
func setView() { func setView() {
view.backgroundColor = .white view.backgroundColor = .white
bgImageView = { bgImageView = {
......
...@@ -55,15 +55,13 @@ class YHSmsCodeInputView: UIView { ...@@ -55,15 +55,13 @@ class YHSmsCodeInputView: UIView {
override init(frame: CGRect) { override init(frame: CGRect) {
super.init(frame: frame) super.init(frame: frame)
} }
func setupUI() { func setupUI() {
self .addSubview(textField) self .addSubview(textField)
textField.snp.makeConstraints { make in textField.snp.makeConstraints { make in
make.edges.equalTo(self) make.edges.equalTo(self)
} }
textField.becomeFirstResponder() // textField.becomeFirstResponder()
// 输入框数量 // 输入框数量
let count = config.count let count = config.count
......
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 to comment