AVAudioPlayer doesn't work after iOS 13.2.2?

Hi,


I met a strange problem when using AVAudioPlayer..


I am using Objective-C and create a subclass of AVAudioPlayer..


It worked well before iOS 13.2.2. But now I got nil when I call [super init]?


Does anybody know what happened? AVAudioPlayer doesn't support after iOS 13.2.2??


Thank you~~


Eric

Replies

There isn't a valid initializer for AVAudioPlayer that has no parameters. Use one of the documented ones:


https://developer.apple.com/documentation/avfoundation/avaudioplayer