以编程方式更改iOS锁定屏幕 [英] Programmatically changing the iOS lock-screen

查看:129
本文介绍了以编程方式更改iOS锁定屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个应用程序,该应用程序必须能够在iPhone锁定屏幕上显示我自己的视图.我见过很多应用程序,它们可以让您自定义锁屏等,而这些都是App Store应用程序,因此我猜想它是有可能的.

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.

我什至不知道要在iOS SDK中使用什么来尝试实现这一目标.

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

哦和PS:墙纸也一样,我们可以在应用程序内部更改吗?

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

推荐答案

可以通过编程方式进行更改(更改为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.

这篇关于以编程方式更改iOS锁定屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆