Programmatically changing the iOS lock-screen

╄→尐↘猪︶ㄣ 提交于 2019-12-28 02:52:27

问题


I'm building an app which would have to have the ability to show my own views on the iPhone lock screen. I've seen lots of apps which let you customize the lockscreen and so forth and these were App Store apps so i'm guessing it has to possible.

I just can't figure out what to use in the iOS SDK to even try implementing this.

Oh and P.S: same goes for wallpapers—can we change this from inside our app?


回答1:


It can be changed programmatically (change to SpringBoard), but it won't make the way to the (official) AppStore. So if you want to build an app that can change something like the lock screen wallpaper or the ring tone which you usually need the Settings app for, you have to publish your application via Cydia, not Apple's store.

For a sample code block, see this answer.



来源:https://stackoverflow.com/questions/6243591/programmatically-changing-the-ios-lock-screen

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