Changing wallpaper in a background process every month [closed]
I am working on a project in which I want to assign an images to each month, so that when using this application, the iPhone wallpaper changes when the month does.
The assignment of the images and their storage in a database is complete. How do I set the wallpaper when the month changes? This is the remaining problem. I think that the process should run in the background by using NSTimer
. Is this correct or not?
If it is correct, then how do I write the code for that? If it is wrong, then what is suitable for changing the wa开发者_StackOverflowllpaper? Please provide information for that.
Are you sure that you are able to change the wallpaper through the app? I thought this wasn't possible?
Regardless, NSTimer won't help you because you would have to ensure that the app is running full-time, which is not possible on the iPhone. When the app goes in the background there is no way to know how long it will stay resident, as the operating system will kill it off if it needs to reclaim those resources.
In fact, the only way to mimic this would be to check the current date at startup and then determine if anything needs to happen.
This is the answer
Hardware restriction from apple so cant be done by any class or method present in the iPhone library.
精彩评论