将UIView切成多个CALayers

时间:2012-10-31 22:10:30

标签: ios core-graphics

如何将UIView分割成多个CAlayers,以便分别在每个切片上执行动画?

1 个答案:

答案 0 :(得分:2)

我不知道你想要做什么,但你可以将该视图渲染成图像(1),从中裁剪出多个图像(2)并对它们执行动画。

(1)Saving UIView contents in iOS 4 with real size of the images inside (i.e. scale contentes up for save)

(2)How use CGImageCreateWithImageInRect for iPhone 4 (HD)?