调试视图层次结构不呈现UI [英] Debug view hierarchy does not render UI
问题描述
我正在尝试使用xcode 6上的视图层次结构功能来查看应用程序的可拖动布局,但是我得到的只是一个空白区域.
i'm trying to use the view hierarchy feature on xcode 6 to see the draggable layout of my app, but all i get is a blank area where it should be.
尝试了SO和其他地方的许多建议后,没有任何效果.
after trying out lots of suggestions from SO and other places, nothing works.
我已经在有或没有断点,不同的SIM设备,不同的应用程序的情况下运行了sim卡,但是没有任何效果.
I have had the sim running with or without break points, different sim devices, different apps, but nothing works.
我知道您只是应该在模拟应用程序时单击按钮,并且应该弹出该按钮,但是当我这样做时,带有按钮和选项的主界面以及调试中的所有元素都将加载航海家.而不是3d UI本身.
I know you're just supposed to click on the button while the app is being simulated and it's supposed to pop up, but when i do it the main interface with the button and options load along with all the elements in the debug navigator. just not the 3d UI itself.
感谢任何提示.
推荐答案
似乎也遇到了我最近遇到的问题.当我按下按钮时,我会得到一个断言失败:
There seems to be a recent issue as well which I've run into. When I press the button, I get an assertion failure:
-[UITextView _firstBaselineOffsetFromTop]中的断言失败
Assertion failure in -[UITextView _firstBaselineOffsetFromTop]
有一个此处的OpenRadar ,其中的一种变通办法是为我在其中附加无用"约束ViewController.m:
There's an OpenRadar here with a workaround which worked for me of attaching a "useless" constraint" in ViewController.m:
if ([NSLayoutConstraint respondsToSelector:@selector(activateConstraints:)]) {
TEXTVIEWNAME.translatesAutoresizingMaskIntoConstraints = NO;
[NSLayoutConstraint activateConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-[TEXTVIEWNAME]-|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(TEXTVIEWNAME)]];
}
这篇关于调试视图层次结构不呈现UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!