有没有办法查看 iPhone 设备是否有“键盘点击”功能开还是关?

发布于 2024-08-30 15:48:42 字数 67 浏览 1 评论 0原文

我的应用程序可以获取键盘点击设置的当前状态吗?

或者更好的是有没有办法在我的应用程序运行时关闭键盘点击?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

爱的那么颓废 2024-09-06 15:48:42

这是一个用户系统设置,所以我相当确定您将无法为您的应用程序关闭此设置。从用户的角度来看,即使可以禁用此功能,是否会是一种良好的体验?他们期望打字时会发生点击声,因此,如果他们没有听到点击声,即使他们已明确启用它们,他们可能会认为这是错误的。

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.

笑着哭最痛 2024-09-06 15:48:42

您可以禁用 UIPickerView 的点击声音。无证,但相当安全:

if ([myPickerView respondsToSelector:@selector(setSoundsEnabled:)])
    [myPickerView setValue:[NSNumber numberWithBool:NO] forKey:@"soundsEnabled"];

You can disable the click sounds of a UIPickerView. Undocumented, but pretty safe:

if ([myPickerView respondsToSelector:@selector(setSoundsEnabled:)])
    [myPickerView setValue:[NSNumber numberWithBool:NO] forKey:@"soundsEnabled"];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文