有没有办法查看 iPhone 设备是否有“键盘点击”功能开还是关?
我的应用程序可以获取键盘点击设置的当前状态吗?
或者更好的是有没有办法在我的应用程序运行时关闭键盘点击?
Can my app get the current status of the Keyboard Click setting?
Or even better is there a way to turn off Keyboard Clicks while my app is running?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个用户系统设置,所以我相当确定您将无法为您的应用程序关闭此设置。从用户的角度来看,即使可以禁用此功能,是否会是一种良好的体验?他们期望打字时会发生点击声,因此,如果他们没有听到点击声,即使他们已明确启用它们,他们可能会认为这是错误的。
This is a user system setting, so I'm fairly certain you won't be able to turn this off for your app. From a user's perspective would it be a good experience to disable this even if you could? They expect clicks to happen when typing, so if they aren't hearing clicks even though they've explicitly enabled them they might assume it is in error.
您可以禁用 UIPickerView 的点击声音。无证,但相当安全:
You can disable the click sounds of a UIPickerView. Undocumented, but pretty safe: