xcode iPhone 中的内置图像是否已记录在案,并且某处是否有它们的名称列表?

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

Are the built-in images in iPhone documented, and is there a list of their names somewhere?

iphonexcodecocoa-touchinterface-builder

提问by Alex Gosselin

I discovered somewhat by accident that if you make a UIButton in Interface Builder and type in Plus in the image field, a + image appears for the button. A similar result comes from typing Minus.

我有点偶然地发现,如果您在 Interface Builder 中创建一个 UIButton 并在图像字段中输入 Plus,则会为该按钮显示一个 + 图像。类似的结果来自输入减号。

I am wondering if this is a bug, or if there is some way the poor programmers can access the built-in general GUI images from other apple apps, such as the green +, the red -, the detail disclosure chevron, the big red "Delete Contact" or similarly styled button, etc.

我想知道这是否是一个错误,或者是否有某种方式可怜的程序员可以从其他苹果应用程序访问内置的通用 GUI 图像,例如绿色 +、红色 -、细节披露 V 形、大红色“删除联系人”或类似样式的按钮等。

Has anyone else encountered this, or know where to access these things in Xcode?

有没有其他人遇到过这个问题,或者知道在 Xcode 中从哪里访问这些东西?

It makes sense to me that they should be usable, cause the Apple HIG seems to be all about making things recognizable and intuitive, and using them the way other apps use them.

对我来说,它们应该可用是有道理的,因为 Apple HIG 似乎完全是为了让事情变得可识别和直观,并像其他应用程序一样使用它们。

回答by Dustin Pfannenstiel

You can get the UITabBarItems and once there search for UIBarButtonItem. Scroll towards the bottom of the screens and you can see all the system images for Tab Bars and Navigation Bars.

您可以获取UITabBarItem并在那里搜索 UIBarButtonItem。向屏幕底部滚动,您可以看到标签栏和导航栏的所有系统图像。

回答by oelna

I found an up-to-date (iOS7) list of icons for UIBarButtonSystemItemon the official iOS Developer Library, which could be helpful.

UIBarButtonSystemItem在官方iOS Developer Library上找到了最新的 (iOS7) 图标列表,这可能会有所帮助。

UIBarButtonSystemItemDone  
UIBarButtonSystemItemCancel  
UIBarButtonSystemItemEdit  
UIBarButtonSystemItemSave  
UIBarButtonSystemItemAdd  
UIBarButtonSystemItemFlexibleSpace  
UIBarButtonSystemItemFixedSpace  
UIBarButtonSystemItemCompose  
UIBarButtonSystemItemReply  
UIBarButtonSystemItemAction  
UIBarButtonSystemItemOrganize  
UIBarButtonSystemItemBookmarks  
UIBarButtonSystemItemSearch  
UIBarButtonSystemItemRefresh  
UIBarButtonSystemItemStop  
UIBarButtonSystemItemCamera  
UIBarButtonSystemItemTrash  
UIBarButtonSystemItemPlay  
UIBarButtonSystemItemPause  
UIBarButtonSystemItemRewind  
UIBarButtonSystemItemFastForward  
UIBarButtonSystemItemUndo  
UIBarButtonSystemItemRedo  
UIBarButtonSystemItemPageCurl