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:

  1. redraw 4 new color
  2. redraw old positions of 1, 2 , 3 no rectangles
  3. redraw new positions on 1, 2 , 3

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -