简体   繁体   English

在xcode UI对象库中查找UI对象

[英]finding UI objects in xcode UI object library

this is a serious newbie question 这是一个严重的新手问题

i was just in xcode and had a detail table view (or possibly a cell within it) in a detail view controller highlighted...i had the code snippet library up in the Utilities panel. 我只是在xcode中,并且在明细视图控制器中突出显示了明细表视图(或其中的一个单元格)...我在“实用工具”面板中设置了代码段库。 i switched to the objects library, and lo and behold were a bunch UI objects i had never seen in the list...these included radio buttons, a color well, and on and on...very useful stuff i had never seen in that list before. 我切换到对象库,瞧瞧,这是我在列表中从未见过的一堆UI对象。这些对象包括单选按钮,颜色良好以及等等。我从未见过的非常有用的东西之前的那个清单。 i navigated back to the storyboard and then came back to the object library, and this useful stuff was gone, replaced by the usual View Controller, Table View Controller, Collection View Controller, etc. list. 我导航回到情节提要,然后返回到对象库,这些有用的东西不见了,取而代之的是通常的View Controller,Table View Controller,Collection View Controller等列表。 i pulled down the Objects dropdown at the top of the object library, and saw no way to navigate to that prior list of very useful objects... 我在对象库顶部下拉了“对象”下拉列表,但看不到导航到该非常有用的对象的先前列表的方法...

i searched using google, at stackoverflow, and the apple site and still haven't found, apparently, the right way to ask the question. 我使用Google在stackoverflow和Apple网站上进行了搜索,显然,仍然没有找到问这个问题的正确方法。 apparently the object list in the Utilities pane is context sensitive, but try though i might, i have not yet figured out what needs to be highlighted in the storyboard to give me back that very valuable list of UI objects...any help deeply, and embarassedly (if that is a word) appreciated. 显然,“实用程序”窗格中的对象列表是上下文相关的,但是尽管我可能尝试,但我还没有弄清楚故事板上需要突出显示的内容,以使我获得非常有价值的UI对象列表...任何帮助,并尴尬地(如果是一个词)表示赞赏。

May be that was Mac OS controls. 可能是Mac OS控件。 Sometimes it show up. 有时会出现。 Me too don't know when exactly it comes up. 我也不知道确切的时间。 but if you are creating iOS app then you don't need that. 但是如果您要创建iOS应用,则不需要。 it can't be used in iOS app. 它不能在iOS应用中使用。 so its good that you leave that. 所以离开那是一件好事。

Cheers!! 干杯!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM