How to set an image in my own app as wallpaper of lock screen in ios7?

落花浮王杯 提交于 2019-12-14 03:32:04

问题


I am building an album app. I want to set a photo in my own app as wallpaper. Is there some method available for doing so?

update: I know there are already some similar questions posted. But they are out of time. So I am wondering if there is some method in iOS7 to implement so.


回答1:


For apps going into the app store this isn't possible. Apps can't change anything outside of their environment this is because apps on iOS run in a sandboxed mode so they don't know anything about other apps that are on the device and can't affect the OS directly.

To actually do it you would probably need to use some private API so your app would get rejected under:

2.5 Apps that use non-public APIs will be rejected

but I suspect that they would actually reject it under:

10.4 Apps that create alternate desktop/home screen environments or simulate multi-App widget experiences will be rejected

As you are directly altering the home screen.



来源:https://stackoverflow.com/questions/23271874/how-to-set-an-image-in-my-own-app-as-wallpaper-of-lock-screen-in-ios7

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