输入文本时,UITextField的异常行为 [英] UITextField Strange Behaviour When Entering Text
问题描述
想在Google
上搜索此问题,但不知道要写出什么确切的原因,所以我在这里.
Want to Search this Issue on Google
But Do't Know What i need to write for find the exact reason So i am here.
问题
使用Interface Builder
创建UITextField
并运行项目,而当我使用iOS Keyboard
输入任何值时,这正在发生,我感到困惑.
ISSUE
Create UITextField
using Interface Builder
and Run the project and while i am entering any value using iOS Keyboard
this is what happening and i am confuse.
这发生在一个项目中,当我创建一个新项目时,一切正常.
This Happened in One Project and as i created new one everything working fine.
第一次在模拟器上启动应用程序.
Very First Time When App Started on Simulator.
然后我使用iOS Keyboard
然后我再次使用iOS Keyboard
使用iOS Keyboard
使用iOS Keyboard
什么是自上而下的到底是什么,但是却面临着这个问题.
what is the up down up down going here its totally strange but facing this problem.
您可以查看 Youtube视频
如果有人知道,请分享.
Please if anyone know about it share.
谢谢
推荐答案
我遇到了完全相同的问题. 2周前我的应用程序的先前版本中没有此功能.
I had the exact same issue. Didn't have this in a previous release of my app 2 weeks ago.
我发现问题出在展示带有半透明导航栏的嵌入在导航控制器中的视图控制器.
I've found that the issue is coming from presenting a view controller embedded in a navigation controller with a translucent navigation bar.
我在显示的导航控制器的模拟指标中设置了不透明的栏,而UITextField不再存在问题.
I set opaque bar in the simulated metrics of the navigation controller I was presenting and no more issue with UITextField.
至少就我而言,在我为UINavigationController的InterfaceBuilder中的模拟指标中的顶部栏设置不透明栏时,所有问题都得到了解决,其中嵌入了我想模态呈现的UIViewController
On my case at least, everything were resolved at the moment I set opaque bar for top bar in simulated metrics in InterfaceBuilder for my UINavigationController which embed a UIViewController I've wanted to present modally
希望对您也一样.
这篇关于输入文本时,UITextField的异常行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!