我可以禁用UIPickerView滚动声音吗? [英] Can I disable UIPickerView scroll sound?

查看:1374
本文介绍了我可以禁用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?

感谢

p>

推荐答案

在App Store上使用这个特定的无证api超过一年后,苹果终于要求我从我的应用程序中删除它。这是非常令人沮丧的音频应用程序有这个咔嗒声的声音。最好的建议是与用户分享选择器声音可以在声音下的设置应用程序中全局禁用,并将键盘点击设置为关闭。我还强烈建议访问 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滚动声音吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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