开发者

'SoundTap_HDViewController' does not implement the 'AVAudioPlayerDelegate'

开发者 https://www.devze.com 2023-01-02 21:04 出处:网络
I get this error, and I dont get how to fix it? class \'SoundTap_HDViewController\' does not implement t开发者_如何学Gohe \'AVAudioPlayerDelegate\' protocol

I get this error, and I dont get how to fix it?

class 'SoundTap_HDViewController' does not implement t开发者_如何学Gohe 'AVAudioPlayerDelegate' protocol

Any help?


If you are going to conform to a protocol, you need to implement its required methods. AVAudioPlayerDelegate has no required methods, so you may be trying to call a delegate method without adding the protocol. Does your class look something like:

@interface SoundTap_HDViewController : NSObject <AVAudioPlayerDelegate>

Protocols are listed between the <> and separated by commas.

0

精彩评论

暂无评论...
验证码 换一张
取 消