title: iPhone:app becomes "black" when msg "UIStatusBarStyleBlackTranslucent is not available on this device." displayed
body: <p>In my application I record the video and play it. Most of the times video plays nice but sometimes in the middle of the playing video when I pressed "done" button in my log <strong>"UIStatusBarStyleBlackTranslucent is not available on this device."</strong> msg displayed but how its generate that I don't know and when this msg generats my app becomes "black" and I have to delete it from background. Rest of the times my video works nicely and perfectly. 
  In my info.plist file I changed necessary status bar settings but no effect in my result.</p>
  
  <p>I want to mention that I am debugging my app from iPad.</p>
  
  <p>and this msg does not generate every time.
  I don't know why this msg displays.
  Following code running on done button pressed.</p>
  
  <pre><code>- (void)moviePlaybackDidFinish:(NSNotification*)notification
  {
      [self stopMovie];
      NSLog(@"Start Timer Again");
     // [btnVideo setTitle:@"Start Recording" forState:UIControlStateNormal];
      [btnVideo setImage:[UIImage imageNamed:@"Record Button-iPad.png"] forState:UIControlStateNormal];
      NSURL *url = [NSURL fileURLWithPath:@"/dev/null"];
  
      NSDictionary *settings = [NSDictionary dictionaryWithObjectsAndKeys:
                                [NSNumber numberWithFloat: 44100.0],                 AVSampleRateKey,
                                [NSNumber numberWithInt: kAudioFormatAppleLossless], AVFormatIDKey,
                                [NSNumber numberWithInt: 1],                         AVNumberOfChannelsKey,
                                [NSNumber numberWithInt: AVAudioQualityMax],         AVEncoderAudioQualityKey,
                                nil];
  
      NSError *error;
  
      if (recorder) {
          recorder = nil;
          [recorder release];
      }
      recorder = [[AVAudioRecorder alloc] initWithURL:url settings:settings error:&amp;error];
  
      if (recorder) {
          [recorder prepareToRecord];
          recorder.meteringEnabled = YES;
          [recorder record];
      }
      NSString *str = [[NSUserDefaults standardUserDefaults] valueForKey:@"IMAGE_MOVEMENT"];
      NSLog(@"image movement %@",str);
      if(str == @"EASY")
      {
          NSLog(@"inside easy image");
          [self validateTimer];
          levelTimer = [NSTimer scheduledTimerWithTimeInterval:0.03 target:self selector:@selector(levelTimerCallbackEasy:) userInfo:nil repeats: YES];
      }
      else if(str == @"MEDIUM")
      {
          NSLog(@"inside medium image");
          [self validateTimer];
          levelTimerMedium = [NSTimer scheduledTimerWithTimeInterval:0.03 target:self selector:@selector(levelTimerCallbackMedium:) userInfo:nil repeats:YES];
      }
      else if(str == @"HARD")
      {
          NSLog(@"inside hard image");
          [self validateTimer];
          levelTimerHard = [NSTimer scheduledTimerWithTimeInterval:0.03 target: self selector: @selector(levelTimerCallbackHard:) userInfo: nil repeats: YES];
      }
  }
  
  - (void)stopMovie
  {
          NSLog(@"Stop Movie");
  
  
       [[NSNotificationCenter defaultCenter]
       removeObserver:self 
       name:MPMoviePlayerWillExitFullscreenNotification 
       object:moviePlayer];
  
       // This trick is necessary, otherwise the screen remains black or will
       // flicker when you try to play the next video.
       [moviePlayer pause];
       [moviePlayer stop];
       moviePlayer.initialPlaybackTime = -1.0;
  
       moviePlayer = nil;
  
  
      NSString *recorderFilePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
      recorderFilePath = [recorderFilePath stringByAppendingPathComponent:@"tempRecording.caf"];
  
      if ([[NSFileManager defaultManager] fileExistsAtPath:recorderFilePath]) {
          [[NSFileManager defaultManager] removeItemAtPath:recorderFilePath error:nil];
      }
  
      NSString *movieFilePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
      movieFilePath = [movieFilePath stringByAppendingPathComponent:@"export.mov"];
  
      if ([[NSFileManager defaultManager] fileExistsAtPath:movieFilePath]) {
          [[NSFileManager defaultManager] removeItemAtPath:movieFilePath error:nil];
      }
  
      NSString *videoFilePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
      videoFilePath = [videoFilePath stringByAppendingPathComponent:@"output.mp4"];
  
      if ([[NSFileManager defaultManager] fileExistsAtPath:videoFilePath]) {
          [[NSFileManager defaultManager] removeItemAtPath:videoFilePath error:nil];
      }
  
      NSURL *urls = [NSURL fileURLWithPath:recorderFilePath];
      NSError *err = nil;
  
      if (voiceRecorder) {
          voiceRecorder = nil;
          [voiceRecorder release];
      }
  
      voiceRecorder = [[ AVAudioRecorder alloc] initWithURL:urls settings:recordSetting error:&amp;err];
      //[recorder setMeteringEnabled:YES];
  
      if(!voiceRecorder){
          NSLog(@"recorder: %@ %d %@", [err domain], [err code], [[err userInfo] description]);
          UIAlertView *alert =
          [[UIAlertView alloc] initWithTitle: @"Warning"
                                     message: [err localizedDescription]
                                    delegate: nil
                           cancelButtonTitle:@"OK"
                           otherButtonTitles:nil];
          [alert show];
          [alert release];
          return; 
      }
  
      //prepare to record
      [voiceRecorder setDelegate:self];
      [voiceRecorder prepareToRecord];
      //voiceRecorder.meteringEnabled = YES;
  }
  </code></pre>
  
  <p>provide me any solution if you have.</p>
  
  <p>thanx in advance.</p>