0

只是一个简单的问题。

有一个简单的可视化工具来生成 iOS/QuartzCore 的源代码吗?

例如,我会制作一个带有路径和一个(例如 CGPathMoveToPoint 和 CGPathAddCurveToPoint)的 CAKeyframeAnimation,有一个可视化工具来导出源代码吗?

我什么也没找到,我写了这个:

第一张截图

它像这样导出我的源代码:

CGPoint startControllerPoint = {219.5, 162.5};
CGPoint endControllerPoint = {118, 382};

CGPoint startPosition = {55, 161.5};
CGPoint endPosition = {273.5, 383.5};
CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path, NULL, startPosition.x, startPosition.y);
CGPathAddCurveToPoint(path, NULL, startPosition.x + (164), startPosition.y + (1), endPosition.x + (-156), endPosition.y + (-2), endPosition.x, endPosition.y);
CGPathRelease(path);

但并不完整。

我不会重新发明轮子。

谢谢,对不起我的英语。

4

2 回答 2

1

There isn't a tool to draw and animate for iOS. PaintCode and Opacity lets you draw and export code, but not animate. Quartz Composer creates complex compositions but it's for OS X, not iOS.

于 2013-05-13T01:55:37.963 回答
0

You should definitely have a look at PaintCode. It has a sophisticated vector editor, and generates Objective-C source code. It supports both Mac and IOS targets. There is a free demo available so you can try before you buy. Looks very impressive. The only thing is that I don't think it currently supports animations.

于 2013-05-13T01:55:20.283 回答