I am trying to assign a AVAudioPlayer to a property using this
NSURL *soundURL = [[NSBundle mainBundle] URLForResource:@"error" withExtension:@"aiff"]; AVAudioPlayer *avSound = [[AVAudioPlayer alloc] initWithContentsOfURL:soundURL error:nil]; self.soundError = avSound;
I am receiving an error on the last line saying: member reference type 'struct objc_class *' is a pointer; maybe you meant use '->' ?
the property is declared like
@property (nonatomic, strong) AVAudioPlayer *soundError;
pointer? I don't get it.