title: iPhone:Create video from images
body: <p>I am trying to create video from png images which has no audio file.</p>
  
  <p>I have implemented following code but my images are not running smoothly.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      totalImages = 121;
      counter=1;
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
  }
  -(void)viewDidAppear:(BOOL)animated
  {
      levelTimer = [NSTimer scheduledTimerWithTimeInterval:0.40 target: self selector: @selector(levelTimerCallback:) userInfo: nil repeats: YES];
  }
  
  - (void)levelTimerCallback:(NSTimer *)timer 
  {
  
      if(counter &lt;= totalImages)
      {
          NSString *fileName = [NSString stringWithFormat:@"image_iphone_%d",counter];
          NSLog(@"filenameEasy:%@",fileName);
          NSString *fileLocation = [[NSBundle mainBundle] pathForResource:fileName ofType:@"png"];
  
          UIImage *imageName = [[UIImage alloc] initWithContentsOfFile:fileLocation];
          imgV.image = imageName; 
          counter++;
          NSLog(@"counter:%d",counter);
          [imageName release];
          [self viewDidAppear:NO];
      }
  
  }
  </code></pre>
  
  <p>If you have any idea plz share it.
  thanx in advance.</p>