PDA

View Full Version : When display is updated (refreshed) ?




Rogerup
Aug 17, 2009, 08:25 AM
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:



PhoneyDeveloper
Aug 17, 2009, 12:05 PM
drawRect will of course be called on your views to draw.

Why do you need to know this?

Rogerup
Aug 17, 2009, 12:15 PM
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!

PhoneyDeveloper
Aug 17, 2009, 12:20 PM
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.