在 xcode 中显示视图属性检查器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10471975/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 00:12:13  来源:igfitidea点击:

Show view attributes inspector in xcode

iosxcode

提问by MJB

Any idea how I make this window visible in xcode?

知道如何在 xcode 中显示此窗口吗?

http://i.stack.imgur.com/cYUbw.png

http://i.stack.imgur.com/cYUbw.png

I want to change the orientation but I can't find the "Simulated Metrics" tab anywhere.

我想更改方向,但在任何地方都找不到“模拟指标”选项卡。

回答by Alladinian

Since Simulated Metricsapply only to UIViews(if you don't use Storyboards) and UIViewControllersubclasses the easiest way is to select the view or controller and do this: enter image description here

由于Simulated Metrics仅适用于UIViews(如果不使用Storyboards)和UIViewController子类,最简单的方法是选择视图或控制器并执行以下操作: 在此处输入图片说明

回答by MJB

you only get this if you select viewController and select

如果您选择 viewController 并选择,您只会得到这个

View -> Utilities -> Show Attributes Inspector

查看 -> 实用工具 -> 显示属性检查器

回答by Alexander

You must have a view controller selected and the Utilities panel displayed.

您必须选择一个视图控制器并显示“实用工具”面板。