问题
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