Xcode generates png form pdf with different colors

前端 未结 3 1293
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 08:53

We are following article to use pdf vector resources in iOS project: http://martiancraft.com/blog/2014/09/vector-images-xcode6/

However we faced problems. If we set colo

3条回答
  •  心在旅途
    2021-02-10 08:54

    When a new artboard is created in Illustrator it defaults to using Adobe RGB for the color space which doesn't work well with iOS. To make sure the colors remain as close to the original as possible, set the color space to sRGB by selecting "Web" for Profile and RGB for Color Mode under Advanced.

    illustrator settings

    This works well for new artboards. I have an Illustrator file as a deliverable that was created in Adobe RGB. For such cases, I've resorted to copy pasting vector paths on a new artboard that's set to sRGB before saving as PDF for use in Xcode 6.

提交回复
热议问题