iphone - Assets 目录 ImageSet - 编辑 Contents.json
<p><p>我经常将 iPhone 2x 图像也用于 iPad 1x。通过调整布局,应用仍然看起来不错。</p>
<p> Assets 目录支持这一点,除了一个小细节。
当我将图像拖放到 iPhone 2x 和 iPad 1x 时,它会创建图像的副本。</p>
<p>我通过编辑 Contents.json 来清理它并从图像集中删除副本。
我可以这样做吗?</p>
<p> <img src="/image/rpDZF.jpg" alt="shows content.json and file"/> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>编辑 json 文件无助于重用图像和节省磁盘空间。如果您为 iOS 7 之前的版本构建,您会看到图像文件会自动生成并在 app-bundle 中命名:</p>
<p>图片~ipad.png<br/>
图片~iphone.png<br/>
image@2x~ipad.png<br/>
image@2x~iphone.png </p>
<p> Assets 目录的主要方面似乎改进了设计和编程之间的工作流程。它是一种可视化工具,用于构建您的图像数据并且不太关心命名。我听说过团队,其中设计师直接在 Assets 目录上工作。</p></p>
<p style="font-size: 20px;">关于iphone -Assets 目录 ImageSet - 编辑 Contents.json,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/19032855/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/19032855/
</a>
</p>
页:
[1]