当呈现新的 UITableviewController 子类时,为什么以前工作的 Xcode 项目会在 Xcode 7 中挂断? [英] Why does a previously working Xcode project hang up in Xcode 7 when presenting a new UITableviewController Subclass?

查看:19
本文介绍了当呈现新的 UITableviewController 子类时,为什么以前工作的 Xcode 项目会在 Xcode 7 中挂断?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将我的项目转移到 Xcode 7 导致项目在两个地方挂起,这两个地方都应该出现一个新的 UITableViewController 子类.这似乎是 Xcode 7 中的一个错误,并且在 7.01 中也存在,该项目在 Xcode 6.4 中运行良好.

Moving my project over to Xcode 7 caused the project to hang in 2 places both where a new UITableViewController subclass should have been presented. It seems to be a bug in Xcode 7 and is also present in 7.01, The project worked fine in Xcode 6.4.

此错误不会引发异常,只是事情似乎太悬了.

This bug doesn't throw an exception, things just seem too hang.

逐行浏览代码,很明显,在这两种情况下,在 tableviewCell 上返回带有 UITextView 的 UITableViewCell 都存在问题.

Wading thru the code line by line it became clear that in both cases there was an issue returning a UITableViewCell with UITextView's upon the tableviewCell.

推荐答案

解决方案

在调试器导航器上,您可能会看到它在您的线程中显示对 [NSLocalizableString length] 的引用.我的代码没有明确调用 NSLocalizableString 但它似乎是 textView 可能正在处理的事情.

On the debugger navigator you might see it showing a reference to [NSLocalizableString length] on your thread. My codes does not explicitly call NSLocalizableString but it seems like something that a textView might be dealing with.

解决方案很简单 - 从界面构建器中的 UITextview 中删除任何初始文本,执行产品 -> 清理并再次运行代码.

The solution is simple - remove any initial text from the UITextview in interface builder, doing a product->clean and running the code again.

这解决了问题,并且显示了预期的表格视图,就像之前使用 Xcode 6.4 时一样

This resolves the issue and the expected table views are presented as they were previously in using Xcode 6.4

希望这可以为其他人节省几个小时的头撞墙.

Hope this saves someone else several hours of banging their head against a wall.

好吧,向 Apple 提交雷达报告.

Right, off to file a radar with Apple.

这篇关于当呈现新的 UITableviewController 子类时,为什么以前工作的 Xcode 项目会在 Xcode 7 中挂断?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆