gpt4 book ai didi

ios - 打开和关闭特定 viewController 的声音

转载 作者:行者123 更新时间:2023-11-28 08:56:08 25 4
gpt4 key购买 nike

我有一个 viewController 的引用,即使在他上面显示一个新 Controller 时它也会播放声音

有没有办法控制特定的viewController声音?那是使用它的 ref 静音和取消静音吗?

最佳答案

对于后台模式,您需要在 Info.plist 中添加一个键,以指示应用程序想要在后台运行代码。

Click the project on the Project Navigator;
Click TheBackgrounder target;
Click on the Capabilities tab;
Scroll down to Background Modes and turn the switch on;
Check Audio and AirPlay.

您也可以使用此链接。可能会对您有所帮助。

http://www.raywenderlich.com/92428/background-modes-ios-swift-tutorial

关于ios - 打开和关闭特定 viewController 的声音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32993622/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com