如何在Xcode中获取所有系统图标

use*_*606 12 xcode button ios swift

我希望能够使用此处列出的相机开关图标而不是普通的开关图标. https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/BarIcons.html

但是在我的条形按钮项下的Xcode中它似乎没有列出? 在此输入图像描述

我明白我可能会遗漏一些明显的东西.有人能帮忙吗?

lor*_*isi 8

我们谈论的是这个

在此输入图像描述

你的目标是获取1x和2x图标?有几个在线资源(免费和付费),但我认为你的目标是直接以某种方式从设备获取这些图标.

这些是来自UITabBarIteminit的TabBarSystemItem

self.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:0]
Run Code Online (Sandbox Code Playgroud)

如果你要提取所有这些,请看这里有个主意.

如果您只想列出它们,请查看您将找到的标题

typedef enum {
   UITabBarSystemItemMore,
   UITabBarSystemItemFavorites,
   UITabBarSystemItemFeatured,
   UITabBarSystemItemTopRated,
   UITabBarSystemItemRecents,
   UITabBarSystemItemContacts,
   UITabBarSystemItemHistory,
   UITabBarSystemItemBookmarks,
   UITabBarSystemItemSearch,
   UITabBarSystemItemDownloads,
   UITabBarSystemItemMostRecent,
   UITabBarSystemItemMostViewed,
} UITabBarSystemItem;
Run Code Online (Sandbox Code Playgroud)

  • 根据 Apple 的“系统图标”文档 https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/system-icons/ 没有。顺便说一句,这里是一个不错的:https://dribbble.com/shots/1819004-iOS-8-Flip-Camera-Icon (2认同)