iOS Can we make the drawLayer method run with the order in custom uiview.

trunglee

macrumors newbie
Original poster
May 22, 2012
2
0
Hi pro,

I customize an UIView and using drawLayer method with CATileLayer for improve the speed to rendering content.

But the problem is the drawLayer method run as random, in a page, I have 6 tiles, but the drawLayer method dont call in the order tile 0 to tile 5.

I need to find a way to manage them, because I need to know the content of last tile to build the current tile. (to build tile 1, I have to know the content of tile 0 and so on).

Is there anyway to make the drawLayer method call in the order of 0 to 5 ?

Can anyone help me ?, I try 2 days, but I can not find a good solution. Please help me.
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
There is no way to do that. Furthermore if the user has zoomed in and panned only a single tile may draw.
 
Comment

trunglee

macrumors newbie
Original poster
May 22, 2012
2
0
After a night, I decided to give up it, :(

Anyway, thank you, pro!.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.