I am loading an audio with NSURL from ipod-library.
I am trying this sub
AVAudioPlayer *avAudioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:nURL error:nil] ;
//if( err!=nil )
//avAudioPlayer.numberOfLoops = -1; //infinite
// Play that t
[avAudioPlayer prepareToPlay] ;
to set my MediaPlayer with the one that i created but it doesnt play.
I saw on internet that I need to add @property
@property (nonatomic,strong) AVAudioPlayer *avAudioPlayer;
but I dont know how to add a property as it doesnt compile when I add it.