简体   繁体   English

iOS iPhone 11 Xcode 模拟器键盘(硬和软)返回不正确的字符串

[英]iOS iPhone 11 Xcode simulator keyboard (hard and soft) returning incorrect string

With this code使用此代码

- (IBAction)textFieldChange:(id)sender {
    NSString* theText = [sender text];
    NSLog( @"textFieldChange: theText '%@'", theText);

I enter "5[blank][blank]" and upon entering the second blank theText becomes "5.[blank]".我输入“5[blank][blank]”,然后输入第二个空白,theText 变为“5.[blank]”。 Yes, the first blank changes to a period.是的,第一个空白变为句号。 Doesn't happen with the real iPhone 11. Any ideas?真正的 iPhone 11 不会发生这种情况。有什么想法吗? Xcode Version 12.5 (12E262). Xcode 版本 12.5 (12E262)。

    2021-05-14 15:31:10.304996-0700 M[55352:1497186] textFieldChange: theText '5'
    2021-05-14 15:31:10.609588-0700 M[55352:1497186] textFieldChange: theText '5 '
    2021-05-14 15:31:11.049957-0700 M[55352:1497186] textFieldChange: theText '5. '

The behaviour of two consecutive spaces depends on the "." Shortcut两个连续空格的行为取决于"." Shortcut "." Shortcut setting in the device keyboard settings.设备键盘设置中的"." Shortcut键设置。

在此处输入图像描述

It sounds like this is turned on on your simulators but off on your iPhone听起来这在您的模拟器上已打开,但在您的 iPhone 上已关闭

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

相关问题 是否有适用于 Xcode 11、iOS 13 的 iPhone SE 模拟器? - Is there an iPhone SE simulator for Xcode 11, iOS 13? 如何模拟IOS模拟器上的软键盘单击? - How to simulate a soft keyboard click on IOS simulator? iOS 11 - 键盘高度在键盘通知中返回 0 - iOS 11 - Keyboard Height is returning 0 in keyboard notification Xcode 9和Simulator iOS 11中的单元测试错误 - Unit test error in Xcode 9 and Simulator iOS 11 Xcode 11 beta 5 中没有 iOS 13 模拟器 - No iOS 13 simulator in Xcode 11 beta 5 Xcode 9 GM-iOS 11模拟器卡在苹果上 - Xcode 9 GM - Simulator for ios 11 stuck on apple Xcode 11 - 没有 iOS 13.1.2 模拟器(仅 13.0) - Xcode 11 - no iOS 13.1.2 simulator (just 13.0) 删除iOS 8 UITableView for Xcode 6 iPhone模拟器上的SeparatorInset - Remove SeparatorInset on iOS 8 UITableView for Xcode 6 iPhone Simulator iOS - Unable to Run Flutter App in Real Device iPhone 11. iOS - 15.2, Xcode 13.2.1, It's working in simulator - iOS - Unable to Run Flutter App in Real Device iPhone 11. iOS - 15.2, Xcode 13.2.1 , It's working in simulator 无法启动iphone模拟器; “没有回应”。 Xcode 7,模拟器版本9(适用于iOS 9) - Can't start iphone simulator; “not responding”. Xcode 7, simulator version 9 (for iOS 9)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM