diff --git a/README.md b/README.md index 94d50e0..d644263 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,19 @@ -iOSSystemSoundsLibrary -====================== +# iOSSystemSoundsLibrary - List of all system sounds used in iOS - Run project on your iOS device to test all available system sounds - iOS Simulator does NOT play system sounds - [Screenshot](#screenshot) -##How to use in your project: +## How to use in your project: - add ``AudioToolbox.framework`` to your project - import ``#import `` -####Play sound using SystemSoundID +#### Play sound using SystemSoundID ```objective-c AudioServicesPlaySystemSound (1003); // SMSReceived (see SystemSoundID below) ``` -####Play sound using file url +#### Play sound using file url ```objective-c NSURL *fileURL = [NSURL URLWithString:@"/System/Library/Audio/UISounds/ReceivedMessage.caf"]; // see list below SystemSoundID soundID; @@ -22,6 +21,9 @@ AudioServicesCreateSystemSoundID((__bridge_retained CFURLRef)fileURL,&soundID); AudioServicesPlaySystemSound(soundID); ``` +# Swift version +see https://github.com/klaas/SwiftySystemSounds + List of SystemSoundIDs -------------------------