简体   繁体   English

如果键盘设置为特定语言且继续作为返回键,UITextField 会使应用程序崩溃

[英]UITextField crashes app if keyboard is set to specific language with continue as return key

If you set your preferred language to Albanian(Shqip) and your keyboard to Albanian language your app will crash if you tap on an UITextField that has it's return type set to Continue.如果您将首选语言设置为阿尔巴尼亚语(Shqip)并将键盘设置为阿尔巴尼亚语,如果您点击返回类型设置为继续的 UITextField,您的应用程序将崩溃。

Phone Language Settings电话语言设置

UITextField options UITextField 选项

The error that Xcode throws: Xcode 抛出的错误:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

It may be an Apple bug.这可能是苹果的错误。 From exception, it looks like it is crashing because of an empty placeholder value.从异常来看,它看起来是因为占位符值空而崩溃。 Try adding some text value to Placeholder Text.尝试向占位符文本添加一些文本值。

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

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