Conform to the AVAudioPlayerDelegate
protocol in your header file and the warning will go away. By not declaring that a class conforms to a given protocol, the compiler cannot guarantee (well, at least warn) about your failure to implement the methods required of it. The following code is a corrected version that will suppress the warning.
@interface ViewController : UIViewController <AVAudioPlayerDelegate>
@end