¡@

Home 

2014/10/15 ¤U¤È 10:14:27

iphone Programming Glossary: start_date

How to properly call SQLite functions from background thread on iPhone?

http://stackoverflow.com/questions/745565/how-to-properly-call-sqlite-functions-from-background-thread-on-iphone

nil Find all tasks that meet criteria static char sql SELECT task_id FROM tasks where deleted IS NULL OR deleted 0 AND start_date AND status 0 AND revert_status IS NOT NULL if sqlite3_prepare_v2 db sql 1 revert_future_statement NULL SQLITE_OK NSAssert1..

Adding pause functionality for NSTimer

http://stackoverflow.com/questions/8922269/adding-pause-functionality-for-nstimer

nor paused a sort of 'first run' function void onTimerStart zero the time elapsed time_passed 0 save the starting date start_date NSDate date start a timer that will update the ui in the onTimer function timer NSTimer timerWithTimeInterval 1.0 10.0 target.. is running to pause it void onPause calculate the time that passed not time_passed NSDate date timeIntervalSinceDate start_date stop the timer timer invalidate you can get rid of the start date now using ARC ........ restarting the timer that was paused.. rid of the start date now using ARC ........ restarting the timer that was paused void onUnpause get new start date start_date NSDate date start the timer to update ui again timer NSTimer timerWithTimeInterval 1.0 10.0 target self selector @selector..