Type Method


Creates a sound object that represents a custom sound file.


+ (instancetype)soundNamed:(UNNotificationSoundName)name;



The name of the sound file to play. This file must be located in the current executable’s main bundle or in the Library/Sounds directory of the current app container directory. This parameter must not be nil.

Return Value

A sound object representing the custom sound.


If a sound file with the given name exists both in the current bundle and in the Library/Sounds folder, this method chooses the file in the Library/Sounds folder.

See Also

Getting Notification Sounds


Returns an object representing the default sound for notifications.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software