本文介绍了我可以禁用 UIPickerView 滚动声音吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想禁用 UIPickerView 在上下滚动时产生的烦人点击.有没有办法做到这一点?我想为选择器视图所在的每个项目播放简短的声音.它被内置的声音毁了.

I want to disable the annoying clicks that the UIPickerView generates upon scrolling up and down. Is there a way to do this? I want to play short sounds for each item that the picker view lands upon. It gets ruined by the built in sound.

我知道可以通过在 iPhone/iPod 设置中关闭键盘声音来全局关闭选择器声音.但是有没有办法以编程方式做到这一点?

I understand that the picker sounds can be turned off globally by switching off the keyboard sounds in iPhone/iPod settings. But is there a way to programatically do this?

任何帮助将不胜感激!

谢谢

推荐答案

在 App Store 上使用这个特定的未公开 api 一年多后,Apple 终于要求我从我的应用程序中删除它.音频应用程序有那种该死的咔嗒声是非常令人沮丧的.最好的建议是与用户分享可以在声音"下的设置应用程序中全局禁用选择器声音并将键盘点击"设置为关闭".我还强烈建议访问 https://bugreport.apple.com/ 并为 UIPickerView 提交错误,因为它播放选择器单击时可能会导致音频应用程序失真.

After using this specific undocumented api for over a year on the App Store Apple finally asked me to remove it from my App. It is very frustrating for audio apps to have that damn click sound. The best advice is to share with users that the picker sound can be disabled globally in the settings application under "Sounds" and setting "Keyboard Clicks" to "Off". I also strongly recommend visiting https://bugreport.apple.com/ and filing a bug for UIPickerView, as it can cause distortion in audio applications when the picker click is played.

这篇关于我可以禁用 UIPickerView 滚动声音吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 04:48