After migrating image resources to an Asset Catalog the app builds and runs correctly but the assets don't show up in Xcode's storyboard.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
- how to find the index position of the ARRAY Where
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- Popover segue to static cell UITableView causes co
- “Storyboard.storyboard” could not be opened
I've encountered a similar problem that storyboard just not display the images I set in Asset.
But my case is a little bit different. And the answer is pretty simple.
I only drag one image to the image set and accidently put it to "3x" where storyboard would load "1x" from image set.
Hope this would help someone else and save their time. Don't make the silly mistake as I did.
In my case this occurred because I used the full asset name including file extension (i.e. '.png') in Storyboard.
However, the name for the asset needs to match the name of the Image Set in the Asset Catalog:
So by removing '.png' from the image name in Storyboard it solved the problem.