mac app icon 設定

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   os   ar   使用   for   

mac app icon 設定

1:目前 mac app 所需要的icon 表徵圖尺寸

 

icon_16x16.png         16px[email protected]     32pxicon_32x32.png        32px[email protected]   64pxicon_128x128.png     128px[email protected]    256pxicon_256x256.png     256px[email protected]   512pxicon_512x512.png     512px[email protected]   1024px

2:流程

  把上面的所有圖片放在一個目錄裡面,打包成 icns 檔案,然後把 myapp.icns檔案放到 xcode 工程,然後 在 項目的 plist 裡面,添加欄位 Icon File, 對應 myapp.icns 然後,clean項目,編譯運行,即可

 

3:使用 png2icns 工具,可以快速的,把一張 png圖片,迅速的轉換為,上面的mac icons 列表裡面的所的圖片,

    軟體使用簡單,

    png2icns 下載

   也可以使用 png2icns 指令碼 ,

4:上面產生的 icns檔案,可以使用 mac 系統內建的 iconutil 工具,解壓出來,查看

    

iconutil -c icns <iconset filename>

 

參考:http://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil

http://stackoverflow.com/questions/6337787/how-can-i-set-the-icon-for-a-mac-application-in-xcode

https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html#//apple_ref/doc/uid/TP40012302-CH7-SW13

 

mac app icon 設定

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.