I am creating and putting a custom number bar on top of regular keypad. Now, when I tap on the keys in the numberpad, I want the regular keyboard sound to play. I am using the below code in the button pressed delegate. Log statement prints but there is no sound on my device. A tap on any key on the regular keypad play the sound. Do I need to enable something?
- (void)buttonPressed:(id)iSender {
NSLog(@"Button is pressed");
[[UIDevice currentDevice] playInputClick];
}