title: XCode- Need Help With Errors (Expected ; and Expected Statement)
body: <p>.m coding:</p>
  
  <pre><code>-(void)viewDidLoad {
      NSString *path = [[NSBundle mainBundle] pathForResource:@"MathMusic2" ofType:@"wav"];
      self.theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL]
      autorelease];  //error: expected ';' before 'autorelease' and // error: expected statement before ']' token
      theAudio.delegate = self;
      [theAudio play];
      theAudio.numberOfLoops = -1;
  
     }
  </code></pre>
  
  <p>related warnings:</p>
  
  <blockquote>
    <p>warning: property 'theAudio' requires
    method '-theAudio' to be defined - use
    @synthesize, @dynamic or provide a
    method implementation</p>
    
    <p>warning: property 'theAudio' requires
    the method 'setTheAudio:' to be
    defined - use @synthesize, @dynamic or
    provide a method implementation</p>
  </blockquote>
  
  <p>tell me if you need .h coding. But there are no errors there. </p>