ios 是否可以调整 iPhone 中的振动级别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9064226/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is it possible to adjust level of vibration in iPhone?
提问by meetpd
Is there a way to adjust intensity/level of vibration in iPhone using iPhone SDK?
有没有办法使用 iPhone SDK 调整 iPhone 中的振动强度/水平?
回答by Oscar Gomez
There is no way to adjust vibration, it either vibrates or it doesn't.
没有办法调整振动,它要么振动,要么不振动。
回答by Sagar R. Kothari
There is no way to adjust vibration. But, there is a way to access volume of iPhone.
没有办法调整振动。但是,有一种方法可以访问 iPhone 的音量。
MPVolumeView is used for that. One has to import MediaPlayer.framework for that.
MPVolumeView 用于此目的。为此,必须导入 MediaPlayer.framework。