• 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
Synchronizing iOS redraw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Synchronizing iOS redraw


  • Subject: Synchronizing iOS redraw
  • From: Rick Mann <email@hidden>
  • Date: Sun, 7 Nov 2010 21:04:36 -0800

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.

If I knew how long this takes, I could calculate when I need to start drawing, and adjust my timer accordingly.

Note that the precision of all this isn't so high as to make this "hard" real time. It just has to be good enough that a person watching the display and comparing it (visually) to an accurate clock would consider them to be synchronized. I'd like to do no worse than 100 ms.

Any ideas?

TIA,
Rick

_______________________________________________

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

  • Follow-Ups:
    • Re: Synchronizing iOS redraw
      • From: vincent habchi <email@hidden>
  • Prev by Date: Re: instance fails in its own class
  • Next by Date: Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • Previous by thread: Re: MapKit on iPad
  • Next by thread: Re: Synchronizing iOS redraw
  • Index(es):
    • Date
    • Thread