通过应用程序将 iphone 设置为振动并将 iphone 设置回声音 [英] Setting iphone to vibrate and setting iphone back to sound via app

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

问题描述

伙计们,我需要你们的知识.

Folks, I need your knowledge here.

考虑以下情况 - 我的应用程序需要在特定时间将我的 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.

我已经在谷歌上搜索过了,但没有找到一个好的、苹果可接受的方法:

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

以编程方式打开设置应用 (iPhone)

是可以在设置应用程序中动态更改 iphone 应用程序的设置页面吗?

在您的应用程序中显示 iphone 应用程序设置

如何从我的应用程序? [这里的这个很有趣,因为我可以找到一种方法来了解我感兴趣的设置的关键是什么]

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]

如何从我的应用程序? [它提到我可以做到这一点,但没有给出如何=(]

How do I launch my settings bundle from my application? [It mentions I can do that, but does not give an idea of how =(]

是可以在设置应用程序中动态更改 iphone 应用程序的设置页面吗? [如果这是真的,我将无法做我想做的事...]

Is it possible to dynamically alter an iphone app's settings page in the settings app? [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天全站免登陆