There is a UIScrollView, contentView of scrollView have a UINibView, UINibView have three UITextField:
Action of first UITextField: display a custom view; Action of second UITextField: show system keyboard; Action of third UITextField: display a custom view.
Click the second one first, then click the first, the keyboard cannot be hidden at this time.
kehuiInfoView.dateInput.rx.controlEvent(.editingDidBegin)
.subscribe { _ in
weakSelf?.view.endEditing(true)
weakSelf?.kehuiInfoView.dateInput.resignFirstResponder()
weakSelf?.datePicker.show()
}
.disposed(by: bag)