When display is updated (refreshed) ?

Discussion in 'iOS Programming' started by Rogerup, Aug 17, 2009.

  1. Rogerup macrumors newbie

    Joined:
    Aug 17, 2009
    #1
    Hi guys, I would like to know if there is any callback or a variable that indicates me when the display has really updated, I´m using uiView.

    My app needs to knows when the display really changed (has updtaded), after I update it with a new image !!! :confused:
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    drawRect will of course be called on your views to draw.

    Why do you need to know this?
     
  3. Rogerup thread starter macrumors newbie

    Joined:
    Aug 17, 2009
    #3
    Some images (big ones) slow more then others. And I need to know when the image is really on the screen to start other thing in my app (I need a very good precision). So if display sends me a callback when it finish the refresh will be ok!
     
  4. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #4
    Aside from the drawRect callback I don't know of any other notification. Animations do have a callback when they end. Not sure if there's a way that you could use that but I guess the animation will end after the view has drawn.
     

Share This Page