【问题标题】:How to get all the system icons in Xcode如何在 Xcode 中获取所有系统图标
【发布时间】:2016-10-16 09:36:42
【问题描述】:

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

但在我的栏按钮项下的 Xcode 中,它似乎没有被列出?

我知道我可能遗漏了一些明显的东西。有人可以帮忙吗?

【问题讨论】:

  • 你试过this吗?
  • 只看这个是否意味着我必须从某个地方下载一个图标库?因为它没有提到相机开关图标?

标签: ios xcode swift button


【解决方案1】:

我们在谈论thislike

您的目标是抓住 1x 和 2x 图标? 有多种在线资源(免费和付费),但我认为您的目标是以某种方式直接从设备中获取这些图标。

那些来自UITabBarItem init 和TabBarSystemItem

self.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:0]

如果您要提取所有这些,请参阅here 了解一下。

如果您只想列出它们,请查看您会发现的标题

typedef enum {
   UITabBarSystemItemMore,
   UITabBarSystemItemFavorites,
   UITabBarSystemItemFeatured,
   UITabBarSystemItemTopRated,
   UITabBarSystemItemRecents,
   UITabBarSystemItemContacts,
   UITabBarSystemItemHistory,
   UITabBarSystemItemBookmarks,
   UITabBarSystemItemSearch,
   UITabBarSystemItemDownloads,
   UITabBarSystemItemMostRecent,
   UITabBarSystemItemMostViewed,
} UITabBarSystemItem;

【讨论】:

猜你喜欢
  • 2012-02-28
  • 1970-01-01
  • 1970-01-01
  • 2012-05-20
  • 1970-01-01
  • 2016-02-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多