Programmatically change iPhone Background

后端 未结 3 1636
小蘑菇
小蘑菇 2021-02-04 21:50

is it possible to change the iPhone background from code?

相关标签:
3条回答
  • 2021-02-04 22:24

    If you write a new png to /User/Library/LockBackground.png and then call notify_post(" com.apple.language.changed"); the device will respring and your new background will be present.

    This isn't technically a private API, but does fall outside of what Apple allows on the store.

    0 讨论(0)
  • 2021-02-04 22:28

    Nope, you can only save a picture for the user to set as a background.

    0 讨论(0)
  • 2021-02-04 22:35

    Mel is correct, there's no way to skip over the save process.

    The reason this will always be the case:

    Apple doesn't want apps to be able to set the background immediately upon opening. Theoretically, they could have a permission box (like the location dialog), but I doubt that will happen anytime soon.

    0 讨论(0)
提交回复
热议问题