[英]UITableView black/crash iOS 8 - No Log
I'm building an app for iOS 7+ and I'm testing this on iOS 8 for now. 我正在为iOS 7+开发一个应用程序,目前正在iOS 8上进行测试。
I'm creating a simple sign up form. 我正在创建一个简单的注册表格。 Using a
UITableView
where one cell holds a UITextInput
for the username and another cell underneath holds a UITextInput
for password. 使用一个
UITableView
,其中一个单元格保存一个UITextInput
作为用户名,下面的另一个单元格保存一个UITextInput
作为密码。
When I click on the username input field, the keyboard pops up as expected. 当我单击用户名输入字段时,键盘将按预期方式弹出。 Now, if I click on the password input field in the other
UITableViewCell
then the whole UITableView
crashes/appears black. 现在,如果我单击另一个
UITableViewCell
的密码输入字段,那么整个UITableView
崩溃/显示为黑色。 The keyboard remains visible however. 键盘仍然可见。
What's strange is that no logs are left either via the Terminal debug output area or the whole iPhone console log. 奇怪的是,无论是通过终端调试输出区域还是整个iPhone控制台日志,都没有留下任何日志。
Additionally - this ONLY happens when running it on an actual iPhone. 此外-仅在实际iPhone上运行时会发生这种情况。 I cannot replicate the crash/black screen in the simulator (perhaps this is because the keyboard doesn't pop up in the simulator?).
我无法在模拟器中复制崩溃/黑屏(也许这是因为键盘没有在模拟器中弹出?)。 I'm using Xcode 6 beta 2 and building for iOS 7 and above.
我正在使用Xcode 6 beta 2并针对iOS 7及更高版本进行构建。 Running on iOS 8.
在iOS 8上运行。
Lastly - I have stuck a debug output in prepareForReuse()
for the respective cells. 最后-我在各个单元的
prepareForReuse()
中插入了调试输出。 This does not get called. 这不会被调用。
Any tips on what is going on here? 关于这里发生的事情有什么提示吗?
Thanks in advance. 提前致谢。
== Edit == ==编辑==
After the "crash" the screen appears like (note: the status bar is hidden before the crash): 在“崩溃”之后,屏幕显示如下(注意:崩溃之前状态栏已隐藏):
禁用更正解决了问题-多么奇怪!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.