playInputClick无法正常工作

mic*_*c3r 5 objective-c ios

嗨,我正在尝试一些示例和检查文档,但我不能让它工作.这是我的代码:

@interface AHMSoudView : UIView <UIInputViewAudioFeedback> 
- (void) playClick;
@end

@implementation AHMSoudView
- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
     // Initialization code
    }
    return self; 
}



- (BOOL) enableInputClicksWhenVisible {
    return YES; 
} 
- (void) playClick {
    [[UIDevice currentDevice] playInputClick]; 
}
@end
Run Code Online (Sandbox Code Playgroud)

在故事板中,我将视图设置为我的AHMSoundView.在控制器中,我有:

- (IBAction)keypadTouchDown:(id)sender {
    [((AHMSoudView *)self.view) playClick];
}
Run Code Online (Sandbox Code Playgroud)

但没有任何反应.我究竟做错了什么?