views:

30

answers:

1

Hi there,

I'm looking into the Apple ScrollViewSuite and the Photoscroller, and I wonder how to implement a CATiledLayer when downloading the tiles through an NSURLConnection: how do I notify drawRect: that a specific tile has been downloaded and how do I keep track of the rects and contexts associated with each tile?

Regards Fredrik

A: 

I thing there are just no way for doing this because it is supposed to work to other way around. Tiles are rendered in separated thread and thus you could start downloading the tile from the drawLayer:InContext: method. Of course don't forget to implement caching for the downloaded tiles otherwise you will kill both your app and your invoice :-)

VdesmedT