title: NSMutableArray of UIImages - view stays stuck with last image
body: <p>I'm sure that I'm missing something terribly easy here...</p>
  
  <p>I loop through the images just fine the first time, the indices reset and increment properly, but the UIView doesn't refresh and keeps the last image in the array showing. transitionFromView: automatically swaps the subviews, right? Do I need to implement the completion: option?</p>
  
  <p>What am I missing? Here's the pertinent code:</p>
  
  <pre><code>    - (id)initWithFrame:(CGRect)frame
      {
          NSInteger maxSlides = 12;
          self = [super initWithFrame: frame];
          if (self) {
              //set up an array of images to be used for a flipbook    
              slides = [[NSMutableArray alloc] initWithCapacity: maxSlides]; 
  
              for(NSInteger i=0; i&lt;maxSlides; ++i) {
                 imageView = [[UIImageView alloc] initWithImage:                
                 [UIImage imageNamed:[NSString stringWithFormat: @"muybridge%d.png", i]]];
  
                 [slides addObject: imageView];
              } 
  
              index = 0; //default to first photo.
  
              [self addSubview: [slides objectAtIndex: index]];
           }
           return self;
       }
  
      - (void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event 
      {    
           //output indices for debugging. (yes, they increment properly)
           NSLog(@"index = %d", index);
           NSLog(@"currentIndex = %d", currentIndex);
           NSLog(@"nextIndex = %d", nextIndex);
  
           if (nextIndex &lt;= 10) {
             currentIndex = nextIndex;
           } else {
              currentIndex = 0;
           }    
           nextIndex = currentIndex + 1;
  
           //flipbook - tapping the image transitions to the next image in the array  
           [UIView transitionFromView: [slides objectAtIndex: currentIndex]
                      toView: [slides objectAtIndex: nextIndex]
                      duration: 0
                      options: UIViewAnimationOptionTransitionCurlUp
                      completion: NULL
            ];
       }
  </code></pre>