I am looking for a system for my iPhone app that functions similarly to Delayed::Job and Resque in rails. I’d like to request that a bit of code run eventually, maybe even after it has been closed and opened again.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For a simple delay, look into
dispatch_after.To delay beyond the runtime life of your process (i.e. after closing and reopening the app as you mention), you’ll need to do your own archiving of state, reconstructing it into code that you want to run, and scheduling it.