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

12

你尝试过这个了吗? - Lucas
仅仅看这个,这是否意味着我需要从某个地方下载图标库?因为它没有提到相机切换图标? - user1503606
2个回答

8

我们正在谈论类似于this的内容

enter image description here

你的目标是获取1x和2x图标? 有几个在线资源(免费和付费),但我假设你的目标是以某种方式直接从设备获取这些图标。 这些是使用TabBarSystemItem初始化的UITabBarItem产生的。
self.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:0]

如果您要提取它们所有的内容,请查看这里以了解相关信息。
如果您只想列出它们,请查看标题以获取更多信息。
typedef enum {
   UITabBarSystemItemMore,
   UITabBarSystemItemFavorites,
   UITabBarSystemItemFeatured,
   UITabBarSystemItemTopRated,
   UITabBarSystemItemRecents,
   UITabBarSystemItemContacts,
   UITabBarSystemItemHistory,
   UITabBarSystemItemBookmarks,
   UITabBarSystemItemSearch,
   UITabBarSystemItemDownloads,
   UITabBarSystemItemMostRecent,
   UITabBarSystemItemMostViewed,
} UITabBarSystemItem;

内置翻转摄像头图标吗? - okhobb
2
根据苹果的“系统图标”文档 https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/system-icons/,似乎没有。顺便提一下,这里有一个不错的:https://dribbble.com/shots/1819004-iOS-8-Flip-Camera-Icon - loretoparisi

0

我的5分钱
自从iOS 13以来,我认为正确的方法应该是使用SF-Symbols(只需下载应用程序)。它们是免费且可配置的。
(人机界面准则)


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接