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

Discussion in 'iOS Programming' started by trunglee, May 22, 2012.

  1. trunglee macrumors newbie


    May 22, 2012
    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.
  2. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    There is no way to do that. Furthermore if the user has zoomed in and panned only a single tile may draw.
  3. trunglee thread starter macrumors newbie


    May 22, 2012
    After a night, I decided to give up it, :(

    Anyway, thank you, pro!.

Share This Page