這兩天開發iOS app用到了Tab bar,而後隨便切了點圖標放上去發現效果極差。因而乎,開始查找蘋果官方給的標準。搜索一番後,看到了一篇博文,但其內容與iOS人機交互指南最新版內容不符。html
故此,在下面列出iOS Human Interface Guidelines最新版中的尺寸標準,具體索引爲Icon and Image Design-> Icon and Image Sizeapp
「Every app needs an app icon and a launch file or image. In addition, some apps need custom icons to represent app-specific content, functions, or modes in navigation bars, toolbars, and tab bars.ide
每一個應用都須要一個應用圖標和一個啓動文件或啓動圖片。此外,一些應用須要使用自定義圖標在導航欄、工具欄和tab bar中展現特別的內容,功能或者風格。工具
Unlike other custom artwork in your app, the icons and images listed in Table 41-1 must meet specific criteria so that iOS can display them properly. In addition, some icon and image files have naming requirements (to learn about naming these files, see App Icons in App Programming Guide for iOS and App Launch (Default) Images in App Programming Guide for iOS).」ui
和其餘你在應用中自定義的artwork不一樣,爲了iOS可以正確的顯示,下面表中列出的圖標和圖片須要符合特殊的標準。另外,一些圖標和圖片文件必須知足命名要求。(爲了瞭解更多,請看App Icons in App Programming Guide for iOS and App Launch(Default) Images in App Programming Guide for iOS)spa
摘錄來自: Apple Inc. 「iOS Human Interface Guidelines」。 iBooks. https://itun.es/cn/pyfv0.lhtm