나는 스위프트를 배우며 음악 재생 앱을 만들려고 노력하고 있습니다. AVAudioPlayer 객체가 플레이어 인이라는 속성이있는 사용자 정의 클래스가 있습니다. 플레이어 개체와 함께 AVAudioPlayerDelegate
메서드를 사용하려면 어떻게해야합니까? NSObject의에서Swift AVAudioPlayer를 상속받지 않는 클래스에서 AVAudioPlayerDelegate를 어떻게 사용할 수 있습니까?
The type myClass does not conform to the protocol NSObjectProtocol
의 사용 가능한 복제 [클래스가 일치하지 않습니다 NSObjectProtocol] (https://stackoverflow.com/questions/40705591/class-does-not-conform-nsobjectprotocol) –