has Iphone built in beep sound effect

前端 未结 1 600
我寻月下人不归
我寻月下人不归 2021-02-09 04:34

hi i need to use beep on iphone, but the only thing i have found is this

NSString *soundPath = [[NSBundle mainBundle] pathForResource:@\"alert\" ofType:@\"wav\"]         


        
相关标签:
1条回答
  • 2021-02-09 04:54

    Reading the documentation of Apple and this, I'm almost certain that you can play that wanted sound without carrying it.

    You can do this:

    AudioServicesPlaySystemSound(1005);

    that should do.

    Reference: here

    0 讨论(0)
提交回复
热议问题