在Photoshop / Illustrator中绘制路径,在iOS中使用它

时间:2010-12-09 11:39:26

标签: path photoshop cakeyframeanimation cgpath cashapelayer

我正在寻找一种更方便的绘制路径的方法,而不是通过编程方式绘制它。有没有办法在Photoshop(或Illustrator)中绘制路径并获取iPhone的路径以在CAKeyframeAnimation中使用?例如通过导出点数据,或导入.ai文件?

2 个答案:

答案 0 :(得分:3)

GitHub project called "PocketSVG"可以从SVG文件创建UIBezier对象。它与Adobe Illustrator中创建的形状完美配合,并导出到SVG Tiny 1.2。

答案 1 :(得分:2)

我最终使用Opacity。 Opacity是一个漂亮的小程序,允许您绘制路径(或导入图像)并导出iOS的源代码(例如Quartz)。