title: AVAudioRecorder How to gain mic level in iphone?
body: <p>I am develop audio recording app for iphone 6+.<br>
  problem 1: (AVAudioRecorder)audio recording work fine in simulator but not work in device..  </p>
  
  <p>Audio Settings:</p>
  
  <pre><code>[settings setValue:[NSNumber numberWithInteger:kAudioFormatAppleIMA4] forKey:AVFormatIDKey];
  
  [settings setValue:[NSNumber numberWithFloat:44100.0f] forKey:AVSampleRateKey];
  
  [settings setValue:[NSNumber numberWithInteger:1] forKey:AVNumberOfChannelsKey];
  
  [settings setValue:[NSNumber numberWithInteger:AVAudioQualityLow] forKey:AVEncoderAudioQualityKey];
  </code></pre>
  
  <p>problem 2: before mic working well in my ipad. but when i use this code </p>
  
  <pre><code> [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
   [audioSession setActive:YES error:&amp;err];
  </code></pre>
  
  <p>mic not work in ipad.. how to reset or gain my mic level in ipad/iphone</p>