,我發現了以下錯誤:的Xcode 6 Beta版6 CUICatalog:無效的資產名稱提供:(空)或無效的比例係數:2.000000
CUICatalog: Invalid asset name supplied: (null), or invalid scale factor: 2.000000
Could not load the "(null)" image referenced from a nib in the bundle with identifier "com.example.project"
我越來越的錯誤,因爲我樹立了「選擇圖片」以Interface Builder的一個標籤欄項目:
我已經添加文件到Xcode中:
設置寫入文件的故事板:
<tabBarItem key="tabBarItem" title="..." image="config.png" selectedImage="config_filled.png" id="5Wh-7m-Y4H"/>
我使用的Xcode 6測試版6
我知道Error: CUICatalog: Invalid asset name supplied: (null), or invalid scale factor : 2.000000但是這並不能幫助我。
什麼可能導致資產名稱爲空?我已經重新進入了圖像名稱,我也嘗試了清理和重建,但錯誤仍然存在(並且沒有出現圖像)
在
UIImageView
再次選擇圖像我收到完全相同的錯誤,並沒有提到一個無效的比例因子。我正在使用提供了所有圖像大小的資產目錄。這似乎是一個明確的錯誤。我的最終解決方案是簡單地排除選定的圖像,因爲我沒有看到它值得進一步追求。 – 2014-10-18 00:42:14Duplicate from http://stackoverflow.com/questions/12672603/could-not-load-the-image-referenced-from-a-nib 答案就在那裏。 – 2014-10-31 19:02:08
@GabrielCartier請仔細閱讀我的問題,我已經檢查過,當我問我的問題。 – idmean 2014-10-31 19:04:32