开发者

can i create array of layers in core animation

i want to create multiple layers for multiple images of an array. i want t开发者_如何学运维o create each layer for each object of an array. the array contains 10 objects with different image and i want to draw at different positions.

thanks,


You can create explicit layers by allocating a [CALayer alloc]init], then setBounds: and setPosition: on it. You can draw onto these layers and use something like Core Animation to animate them if you wish.

The CALayer is an object, so you can use an array container (or other containers, sets, dictionaries) to hold them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜