2013-07-02 45 views
2

我在許多不同的應用程序中看到相同的圖標(例如,在標籤欄中刷新,回家,展開等圖標)。是否可以免費下載Apple提供的這些基本圖標,還是必須由每個開發人員進行設計?
對我來說,看起來很奇怪,蘋果會竭盡所能讓他們的應用程序遵循HIG,但不會提供至少非常基本的一組圖標,因此用戶本能地知道按鈕的功能。我已經在谷歌上進行了一次快速搜索,但似乎沒有任何東西直接來自蘋果,而大多數人都是付費圖標。任何想法的人?是否有股票蘋果圖標集可供下載?

編輯

而作爲一個側的問題,是兩個圖標圖像需要滿足視網膜顯示器或將應用程序自動「縮小」的正常顯示視網膜顯示快樂圖標?

回答

2

例如,您看到的大多數「標準」圖標都是蘋果設計的,例如UIToolBar。他們內置到標準的UIBarButtonItem類。要初始化其中的一個,你做這樣的事情:

UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:(UIBarButtonSytemItem)... 

什麼(UIBarButtonSystemItem)雲可能是:

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

裏面全是你的iOS各地看到的標準圖標。

我從UIBarButtonItem class reference那裏得到了這個清單。它包含用例的截圖和描述等內容。

+0

你知道是否有任何方法可以從故事板中引用這些內容(例如在Bar Item屬性 - 圖像中),還是必須創建一個新的子類才能在代碼中加載它? – Giovanni

+0

我相信這是在酒吧按鈕的IB屬性。環顧四周 - 當你看到它時你就會知道它。 – Undo

+0

謝謝 - 你已經接受了答案!還有一件小事情:我認爲標籤欄圖標與任何其他圖標相同 - 如果我已命名爲icon.png Picture.png,那麼我還必須包含另一個圖標,其分辨率爲圖片2x.png的兩倍iOS會自動選擇它是否在視網膜顯示屏上顯示)? – Giovanni