title: Playing sound in iOS7 don't seem to work
body: <p>Im having a little problem playing an audio file in iOS7. The audio file doesn't get played because there is no sound when this code is called:</p>
  
  <pre><code>NSURL* musicFile = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"PistolShootSound" ofType:@"mp3"]];
  AVAudioPlayer *click = [[AVAudioPlayer alloc] initWithContentsOfURL:musicFile error:nil];
  [click setVolume:1.0];
  [click play];
  </code></pre>
  
  <p>But no sound is coming out :(</p>
  
  <p>I have checked the sound on my computer and it is working, I have rechecked the "Play user interface sound effects" option in system preferences but with no use. I have tried opening an AVAudioSession like this:</p>
  
  <pre><code>AVAudioSession *audioSession = [AVAudioSession sharedInstance];
  [audioSession setCategory:AVAudioSessionCategoryPlayback error:nil];
  [audioSession setActive:YES error:nil];
  </code></pre>
  
  <p>But that didn't work either.</p>
  
  <p>Is there another way to play a sound in iOS7? or doesn't the simulator play sounds anymore?</p>