以编程方式更改 iOS 锁定屏幕
我正在构建一个应用程序,它必须能够在 iPhone 锁定屏幕上显示我自己的视图。我见过很多应用程序可以让你自定义锁屏等等,这些都是应用程序商店应用程序,所以我猜它一定是可能的。
我只是不知道在 iOS SDK 中使用什么来尝试实现这个。
哦,还有 PS:壁纸也是如此——我们可以从应用程序内部更改它吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它可以通过编程方式更改(更改为 SpringBoard),但不会进入(官方)AppStore。因此,如果您想构建一个可以更改锁屏壁纸或铃声(您通常需要“设置”应用程序)之类的应用程序,则必须通过 Cydia 而不是 Apple 商店发布您的应用程序。
有关示例代码块,请参阅 这个答案。
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.