设置iPhone震动和设置iphone回通过应用声 [英] Setting iphone to vibrate and setting iphone back to sound via app

查看:122
本文介绍了设置iPhone震动和设置iphone回通过应用声的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,我在这里需要你的知识。

Folks, I need your knowledge here.

想想以下sittuation - 我的应用程序需要设置我的iPhone在一定时间震动模式,并让它回到演奏音色模式(呼叫接收,短信,电子邮件,所有常见的声音通知),过了几分钟后

Think about the following sittuation - my app need to set my iphone to vibrate mode on a certain time and get it back to playing sounds mode (for call receiving, sms, email, all common sound notifications) some minutes later.

我已经一派认为,并没有发现这样做的好,苹果accetable方式:

I've already googled that, and didn't find a good, apple accetable way of doing that:

<一个href=\"http://stackoverflow.com/questions/736047/possible-to-programmatically-open-settings-app-from-iphone\">http://stackoverflow.com/questions/736047/possible-to-programmatically-open-settings-app-from-iphone

<一个href=\"http://stackoverflow.com/questions/702319/is-it-possible-to-dynamically-alter-an-iphone-apps-settings-page-in-the-settings\">http://stackoverflow.com/questions/702319/is-it-possible-to-dynamically-alter-an-iphone-apps-settings-page-in-the-settings

<一个href=\"http://stackoverflow.com/questions/1141391/display-iphone-application-settings-within-your-application\">http://stackoverflow.com/questions/1141391/display-iphone-application-settings-within-your-application

<一个href=\"http://stackoverflow.com/questions/335965/how-do-i-launch-my-settings-bundle-from-my-application\">http://stackoverflow.com/questions/335965/how-do-i-launch-my-settings-bundle-from-my-application [这里这一个是有趣的,因为我FAS为找到一种方法来知道什么是对我感兴趣的设置键]

http://stackoverflow.com/questions/335965/how-do-i-launch-my-settings-bundle-from-my-application [This one here is interesting, as fas I as find a way to know what is the key for the settings I'm interested in]

<一个href=\"http://stackoverflow.com/questions/335965/how-do-i-launch-my-settings-bundle-from-my-application\">http://stackoverflow.com/questions/335965/how-do-i-launch-my-settings-bundle-from-my-application [它提到我能做到这一点,但并没有给出一个想法如何=(]

http://stackoverflow.com/questions/335965/how-do-i-launch-my-settings-bundle-from-my-application [It mentions I can do that, but does not give an idea of how =(]

<一个href=\"http://stackoverflow.com/questions/702319/is-it-possible-to-dynamically-alter-an-iphone-apps-settings-page-in-the-settings\">http://stackoverflow.com/questions/702319/is-it-possible-to-dynamically-alter-an-iphone-apps-settings-page-in-the-settings [如果这是真的,我不能够做我想做...]

http://stackoverflow.com/questions/702319/is-it-possible-to-dynamically-alter-an-iphone-apps-settings-page-in-the-settings [If this is true, I wouldn't be able to do what I want...]

有没有人有有我怎么做,它通过应用程序的想法?提前很多感谢。

Does anyone there has an idea of how do I do that via app? Many thanks in advance.

推荐答案

从用户的角度想想这一点 - 静音开关是有原因的。如果我要了电话沉默,我会提出了自己切换。不仅将API不会让你这样做,它只是一个坏主意。

Think of this from the user perspective - that silent switch is there for a reason. If I want the phone silent, I will move that switch myself. Not only will the API not let you do this, it's simply a bad idea.

这篇关于设置iPhone震动和设置iphone回通过应用声的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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