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

查看:136
本文介绍了以编程方式更改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. Any ideas? Would be much appreciated!!

哦和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天全站免登陆