• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: system sounds in iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >system sounds in iOS (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: system sounds in iOS
  • Next by Date: Re: What triggers -applicationDidChangeScreenParameters: delegate method?
  • Previous by thread: Re: system sounds in iOS
  • Next by thread: Re: system sounds in iOS
  • Index(es):
    • Date
    • Thread