xcode 在哪里可以找到对象库中的 View 对象?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32356621/
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 07:45:33  来源:igfitidea点击:

Where to find the View object in the object library?

iosxcode

提问by Marco Dinatsoli

I am using Xcode Version 7.0 beta 6 (7A192o)and I am following this tutorial: https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson5.html#//apple_ref/doc/uid/TP40015214-CH19-SW1

我正在使用 Xcode Version 7.0 beta 6 (7A192o),我正在关注本教程:https: //developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson5.html#//apple_ref/doc/uid/TP40015214-CH19-SW1

which states:

其中指出:

In your storyboard, use the Object library to find a View object and drag one into your storyboard

在您的故事板中,使用对象库找到一个 View 对象并将其拖到您的故事板中

However in my object library there is no view, there are many of view controllersbut that is not what I need.

然而,在我的对象库中没有view,有很多,view controllers但这不是我需要的。

Could you tell me please which view the tutorial wants?

你能告诉我教程想要哪种视图吗?

This is an image from the tutorial:

这是教程中的图片:

enter image description here

在此处输入图片说明

but I don't have that view here.

但我在这里没有这种看法。

回答by Midhun MP

The UIViewand all it's variant will be in the Object library. There will be a lot of them, so just type "UIView" or just "View" in the filer textfield below the object library, then you will get the filtered list with the UIViewobject.

UIView和所有它的变种会在对象库。它们将有很多,因此只需在对象库下方的文件管理器文本字段中键入“UIView”或“View”,然后您将获得带有UIView对象的过滤列表。

Object Library Filtering

对象库过滤

回答by Ethan Cotler

I believe the documentation is calling a view controller a view. So just grab a view controller and drag it into your storyboard.

我相信文档将视图控制器称为视图。所以只需抓住一个视图控制器并将它拖到你的故事板中。