开发者

'SoundTap_HDViewController' does not implement the 'AVAudioPlayerDelegate'

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜