adaptor iOS6, fix the bug with UITextField.