Swift - Change iPhone background

梦想与她 提交于 2019-12-13 09:46:41

问题


I was thinking about changing iPhone background using app. Is there some code in Swift to change iPhone background?

I don´t mean change background of app. I mean change background totally of the iPhone.


回答1:


There is no way to currently access the device's Wallpaper as of now.

Essentially Apple doesn't allow it, though jailbroken devices can access this functionality.

You also aren't allowed to set or change the wallpaper of the entire phone in third party apps. The user has to do that manually through the settings or photos app. You can add instructions as to how the user can do that in your app.



来源:https://stackoverflow.com/questions/50598159/swift-change-iphone-background

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