         super.init(nibName: nil, bundle: nil)
 
         self.textFields = textFields
+        for textField in textFields {
+            oldTextFieldDelegates[textField] = textField.delegate
+        }
 
         formView = UIView(frame: .zero)
         formConfigure(formView)

        }
    }

    func textFieldShouldReturn(_ textField: UITextField) -> Bool {
        let idx = textFields.index(of: textField)!
        if idx == textFields.count - 1 {

    fileprivate var formView: UIView!

    fileprivate var textFields: [UITextField]!
    fileprivate var oldTextFieldDelegates: [UITextField: UITextFieldDelegate?] = [:]
    
    fileprivate var currentTextField: UITextField?
    fileprivate var keyboardFrame: CGRect?
