I've been working on a custom keyboard for iOS 8 for some time and everything went fine so far, but I still couldn't get my head around this tapping sound stuff.
I searched high and low for this issue and tried several approaches including
- Using AudioToolbox
- Using AVFoundation
- Put the tock.caf inside my bundle and just play it
Some of them works, in the simulators but none of them works in my devices. Could anyone who has successfully played sound when tapping on custom keyboard buttons care to share some working code? And it is the best if the code could honor the sound settings.