Frank Schmitt
Frank Schmitt

Reputation: 25785

Setting iPhone wallpaper (locked screen background) programmatically?

I have an app which could benefit from the user being able to choose to set an image as the wallpaper (the background image on the "slide to unlock" screen).

Is there a way for non-jailbreak third-party apps to do this? A search for "wallpaper" in the iPhone documentation returns nothing.

Upvotes: 5

Views: 6095

Answers (2)

rpetrich
rpetrich

Reputation: 32346

If you're writing a jailbreak application you can write to /var/mobile/Library/LockBackground.jpg and then kill the Springboard.

Upvotes: 6

Louis Gerbarg
Louis Gerbarg

Reputation: 43462

There is no way to do this with the current SDK, if you want to do it you should file a bug.

Upvotes: 6

Related Questions