• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Synchronizing iOS redraw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synchronizing iOS redraw


  • Subject: Re: Synchronizing iOS redraw
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 8 Nov 2010 08:33:34 -0800

On Sun, 7 Nov 2010 21:04:36 -0800, Rick Mann <email@hidden> said:
>I have a need to synchronize the actual display update of a UIView hierarchy with real time. In my case, I update the display once per second, and I want the display to update *on* the second.
>
>Since I don't really have control of when the draw happens, I don't know how to do this. I update all the various UILabels in my view, and then exit the current iteration of the run loop. Some time later iOS completes drawing and the display updates.

To force a view to update right now instead of waiting for the next "redraw moment" (as I call it), you might be able to take advantage of the "back door" rule that says that a transaction block that orders an animation to a layer, if the block is not preceded by any changes to the layer, will cause animation to begin immediately when the CATransaction class method +commit+ is called, without waiting for the redraw moment. m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: CATransaction setCompletionBlock - Nested Transactions bug?
  • Next by Date: Re: Interrupt copyItemAtPath
  • Previous by thread: Re: Synchronizing iOS redraw
  • Next by thread: NSTextFieldCell multi-line
  • Index(es):
    • Date
    • Thread