title: Xcode iPhone SDK - Show gif image on app Launch
body: <p>I currently have a mp4 video converted from a gif playing at app launch, but using a video stops playing music and has problems with airplay devices connected.</p>
  
  <p>Anyways what i really want is showing my gif on app launch. But i can't seem to get the gif to "play" it only shows one frame, how do i make it play the whole gif ?</p>
  
  <p>My current code:</p>
  
  <pre><code>- (void)viewDidLoad {
  [super viewDidLoad];
  // Do any additional setup after loading the view, typically from a nib.
  // Show Animation;
  NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Launch" ofType:@"mp4"]];
  LaunchPlayer = [[MPMoviePlayerViewController alloc] 
                                                   initWithContentURL:url];
  LaunchPlayer.view.frame = self.view.bounds;
  LaunchPlayer.moviePlayer.movieSourceType = MPMovieSourceTypeFile;
  LaunchPlayer.moviePlayer.controlStyle = MPMovieControlStyleNone;
  LaunchPlayer.view.tag = 1;
  [self.view addSubview:LaunchPlayer.view];
  [LaunchPlayer.moviePlayer play];
  [[NSNotificationCenter defaultCenter] addObserver:self
                                           selector:@selector(LaunchFinish) 
                                               name:@"MPMoviePlayerPlaybackDidFinishNotification"
                                             object:nil];
  }
  </code></pre>