简体   繁体   English

TPKeyboardAvoiding滚动视图默认为iOS中的错误返回键类型'Done',而不是UIReturnKeyNext

[英]TPKeyboardAvoiding scrollview defaults to wrong return key type 'Done' in iOS not UIReturnKeyNext

I have used this keyboard avoiding library https://github.com/michaeltyson/TPKeyboardAvoiding in many iOS projects.It works as expected but in a project it is producing a weird issue where return key title is always 'Done' instead of 'Next'.Functionality is still correct like tapping on keyboard 'Done' is making the below UITextField first responder and Tapping the last keyboard 'Done' is resigning the keyboard. 我在许多iOS项目中都使用了这个避免键盘的键盘https://github.com/michaeltyson/TPKeyboardAvoiding.It可以按预期工作,但是在一个项目中却产生了一个奇怪的问题,即返回键标题始终是``Done''而不是``Next'' '。功能仍然是正确的,就像点击键盘'Done'使得下面的UITextField是第一响应者,而点击最后一个键盘'Done'则是退出键盘。 I have used it many iOS versions and both Objective-C and swift projects without any issue Currently using xcode 8.3.2 with swift Anyone have similar issue or know the reason for this issue. 我已经使用了许多iOS版本以及Objective-C和swift项目,都没有出现任何问题。当前将xcode 8.3.2与swift一起使用有人有类似的问题或知道此问题的原因。 [ [ 第一字段returnKey为“完成” ]] ]]

Found this on the github page: 在github页面上找到了这个:

"To disable the automatic "Next" button functionality, change the UITextField's return key type to anything but UIReturnKeyDefault." “要禁用自动的“下一步”按钮功能,请将UITextField的返回键类型更改为UIReturnKeyDefault以外的任何值。

This could be the reason for your problem. 这可能是您遇到问题的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM