Re: system sounds in iOS
Re: system sounds in iOS
- Subject: Re: system sounds in iOS
- From: Carl Hoefs <email@hidden>
- Date: Sat, 20 Dec 2014 11:28:38 -0700
On Dec 19, 2014, at 11:12 PM, Donald Hall <email@hidden> wrote:
> I want to play a sound indicating that the user has tried to type a non-allowed character (e.g. a letter where a number is needed) in conjunction with "textField:textField shouldChangeCharactersInRange:replacementString:” I was thinking of “tink.caf” or “tock.caf”
#import <AVFoundation/AVAudioPlayer.h>
#import <AssetsLibrary/AssetsLibrary.h>
AudioServicesPlaySystemSound(1057);
-Carl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden