开发者

Changing wallpaper in a background process every month [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜