title: My AVAudioPlayer is not working?
body: <p>Im programming an AVAudioPlayer for the first time ever and its not working :(, heres my code:</p>
  
  <pre><code>@property (nonatomic, strong) AVAudioPlayer *player1;
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
  
       NSError *error = nil;
       if (!self.player1) {
      self.player1 = [[AVAudioPlayer alloc]initWithData:[NSData dataWithContentsOfFile:@"sound 1.caf"] error:&amp;error];
      [self.player1 prepareToPlay];
       }
  
  }
  </code></pre>
  
  <p>And I call it:</p>
  
  <pre><code>- (IBAction)play1:(id)sender {
      [self.player1 play];
  }
  </code></pre>
  
  <p>Thanks your help its appreciated!</p>