简体   繁体   English

键盘在调试时将FOREVER弹出到iPhone应用程序上

[英]Keyboard taking FOREVER to popup on iPhone app while Debugging

In my app which is very basic right now (2 nested TableView menus and a single prebuilt View) my prebuilt View that contains 2 labels, 2 textfields and 1 button acts very strangely. 在我的应用程序中,这是非常基本的(2个嵌套的TableView菜单和一个预先构建的视图)我的预建视图包含2个标签,2个文本字段和1个按钮非常奇怪。 If I run in debug mode and click on one of the textfields it takes approximately 10-15 seconds before the keyboard pops up and nothing else works while waiting for it. 如果我在调试模式下运行并单击其中一个文本字段,则在键盘弹出之前大约需要10-15秒,等待它时没有其他工作。
If I run the Leaks Performance Tool the app runs very snappy with no problem though. 如果我运行泄漏性能工具,应用程序运行非常快速,但没有问题。

Anyone seen this before? 有人见过这个吗? Any idea why it would be doing that? 知道为什么会这样做吗?

I'd take a hard look at the memory usage of the App. 我会仔细研究App的内存使用情况。

Are you doing any thing in the background of the apps while displaying the KB? 在显示KB时,您是否在应用程序的后台做任何事情?

I had a similar problem! 我有类似的问题! Strangely enough having tasks running in a background queue were interfering with the keyboard popping up. 奇怪的是,在后台队列中运行任务会干扰键盘弹出。 This was solved by placing the following line in the viewWillAppear which caused the keyboard to pop up when the view loaded: [myTextField becomeFirstResponder]; 这是通过在viewWillAppear中放置以下行来解决的,该行导致在加载视图时弹出键盘:[myTextField becomeFirstResponder];

i think u wont set up the first responder for that textfield . 我想你不会为该文本域设置第一个响应者。

verify your first responder to textfield 验证您对文本字段的第一响应者

sounds like u enable that textfield from somewhere else.which is lately. 听起来像你从其他地方启用了那个文本字段。最近。

confirm the delegate is conected to fileowner of textfield 确认委托被连接到textfield的文件所有者

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

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