mazllia / Social-Networking-Notes

NCTU CS Project (2012 Fall-2013 Spring)
0 stars 0 forks source link

Sync evoke #7

Open mazllia opened 10 years ago

mazllia commented 10 years ago

AppDelegate should periodically sync with server.

mazllia commented 10 years ago

NSTimer

A timer is not a real-time mechanism; it fires only when one of the run loop modes to which the timer has been added is running and able to check if the timer’s firing time has passed

Repeat

A NSTimer can be repeating or non-repeating.

Tolerance

After OSX 10.9 and iOS 7, set time tolerance to improve power and performance. Default is 0. A general rule of thumb, though, is to set the tolerance to at least 10% of the interval, for a repeating timer.

mazllia commented 10 years ago