animation - CATiledLayer with animating content -
i've got uiview backed catiledlayer. setup works pretty smooth @ moment horror starts when want animate view objects on catiledlayer.
i've read can force catiledlayer redraw using setneedsdisplay
. redraws on screen. tiles loaded on again.
how should update layer when animating? let's take following example: i've got 6 green rectangles on layer , when press uibutton i'd change color of rectangle number 4 red , reposition rectangle 1 2 , 3 on bezier curve.
you can use catiledview:setneedsdisplayinrect: radraw portions of layer.
in case should:
- redraw 4 new color
- redraw old positions of 1, 2 , 3 no rectangles
- redraw new positions on 1, 2 , 3
Comments
Post a Comment