如何在我的应用中播放iOS的默认通知声音

时间:2019-04-19 11:01:08

标签: ios swift

我想在我的应用中播放设备的默认通知声音。

currenlty我正在使用以下代码,但这不是实际的通知声音。

        let systemSoundID: SystemSoundID = 1315
        AudioServicesPlaySystemSound (systemSoundID)

如果没有SystemSoundID,则可以播放声音。这会很好。 因为SystemSoundID播放特定的声音。

0 个答案:

没有答案
相关问题