Setting iPhone wallpaper (locked screen background) programmatically?

不羁岁月 提交于 2019-11-27 07:04:13

问题


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.


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/248982/setting-iphone-wallpaper-locked-screen-background-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!