|
|
1
1
您需要AVAudioSessionCategoryAmbient,这将导致应用程序被静音按钮静音。 |
|
|
2
0
苹果没有任何直接的API来了解iPhone的静音模式。然而,我们确实有一些工作要解决。 上一个SO答案可以帮助您找到解决方法。 How to programmatically sense the iPhone mute switch? How can I detect whether an iOS device is in silent mode or not? 对于来自SO的快速有效解决方案 answer .
|
|
|
Danil · 种子/填充核心数据的最佳实践?[关闭] 1 年前 |
|
|
Robin · LazyVGrid项目预计不会击中测试区域 1 年前 |
|
|
Alex Smith · 移动到下一个视图控制器后如何显示警报? 1 年前 |
|
selcukctn · 如何在react native中制作无限动画? 1 年前 |
|
|
Nicolas Gimelli · iOS 18远程通信通知不起作用 1 年前 |