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