Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all the system icons in Xcode

I want to be able to use the camera switch icon that is listed here not the plain one the switch one. https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/BarIcons.html

But in Xcode under my bar button item it does not seem to be listed? enter image description here

I understand I am probably missing something blatantly obvious. Can anyone help with this?

like image 475
user1503606 Avatar asked Jun 15 '16 10:06

user1503606


1 Answers

We are talking about this like

enter image description here

Your aim is to grab the 1x and 2x icons? There are several online resources (free and paid), but I assume your aim is to get those icons from the device directly in some way.

Those are the ones coming from the UITabBarItem init with TabBarSystemItem

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

If you are going to extract all of them, see here to have an idea.

If you want just to list them, taking a look at the headers you will find

typedef enum {
   UITabBarSystemItemMore,
   UITabBarSystemItemFavorites,
   UITabBarSystemItemFeatured,
   UITabBarSystemItemTopRated,
   UITabBarSystemItemRecents,
   UITabBarSystemItemContacts,
   UITabBarSystemItemHistory,
   UITabBarSystemItemBookmarks,
   UITabBarSystemItemSearch,
   UITabBarSystemItemDownloads,
   UITabBarSystemItemMostRecent,
   UITabBarSystemItemMostViewed,
} UITabBarSystemItem;
like image 170
loretoparisi Avatar answered Nov 01 '22 22:11

loretoparisi