简体   繁体   English

UITextField对iOS8中的触摸没有响应?

[英]UITextField not responding to touch in iOS8?

So I have multiple UITextFields in my storyboard, but there is one isolated field that will not respond to any touch (neither in the simulator nor on the device) for all iOS versions, besides on the very right side of the field? 因此,我的情节提要中有多个UITextField,但是除了该字段的最右侧之外,还有一个隔离的字段不会响应所有iOS版本的所有触摸(无论在模拟器中还是在设备上)。 This may have something to do with the constraints/frame of the field, but I have tried resolving autolayout issues, but nothing seems to work. 这可能与字段的约束/框架有关,但是我尝试解决自动布局问题,但是似乎没有任何效果。

This is what my storyboard looks like (with the malfunctioning UITextField selected): 这是我的情节提要的样子(选择了发生故障的UITextField): 故障区域突出显示

And this is what the simulator looks like: 这就是模拟器的样子:

模拟器

Any ideas? 有任何想法吗? There is very little functionality code-wise, so I imagine this is an Xcode formatting thing. 代码方面的功能很少,所以我想这是Xcode格式化的事情。

Form the picture it looks like the picker is actual over the textfield. 在图片上看起来像选择器在文本字段上是实际的。 It doesn't look like it but those are rather tall. 它看起来不像,但是挺高的。 You could try panning on the text field and see if the picker moves. 您可以尝试在文本字段上平移并查看选择器是否移动。 Also you can try hiding it and see if that changes anything. 您也可以尝试隐藏它,看看是否有任何改变。

Good luck and hope that helps. 祝您好运,希望对您有所帮助。

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

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