Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个倒数计时器应用程序,想知道我是否可以访问内置时钟应用程序中的声音片段列表,还是我必须创建自己的声音片段?
您的应用程序在沙盒环境中运行,因此无法访问该沙盒之外的任何内容。您需要在应用程序包中包含自己的声音并以这种方式访问它们。
如果您在通知中使用声音,请尝试:
notification.soundName = UILocalNotificationDefaultSoundName;