在不锁定屏幕的情况下重新启动Springboard? [英] Restart Springboard without locking screen?

查看:65
本文介绍了在不锁定屏幕的情况下重新启动Springboard?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过编程方式重启Springboard,但是阻止iPhone在此之后打开屏幕锁定?

Is there any way to restart the Springboard programmatically, but prevent the iPhone from turning on its screen lock following this?

曾尝试在设置"中关闭屏幕锁定,但在Springboard重新启动后仍会启动.

Have tried switching off the screen lock in Settings, but it'll still kick in after a Springboard restart.

(电话已越狱.)

推荐答案

从iPhone OS 3.x开始,您可以使用notify_post("com.apple.language.changed")绕过锁定屏幕.

此方法在 iOS 5.x 中不再起作用,因为系统现在会在重新生成之前检查语言是否已实际更改.

This method no longer work in iOS 5.x because the system now checks whether the language is actually changed before respringing.

但是,您可以执行以下操作以达到相同的效果:

However, you could do the following to achieve the same effect:

  1. com.apple.springboard的首选项SBLanguageRestart设置为 true (使用
  1. Set the preference SBLanguageRestart of com.apple.springboard to true (using CFPreferencesSetAppValue and CFPreferencesAppSynchronize, for instance, or directly changing /var/mobile/Library/Preferences/com.apple.springboard.plist)
  2. Kill SpringBoard.

这篇关于在不锁定屏幕的情况下重新启动Springboard?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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