Scrolling the array of images using the CABasicAnimation
I have to scroll the images one by one. THe following are the code which i am using
   
_imageView is UIImageView and imagesArray is the NSArray with array of objects.

       _imageView.animationImages=imagesArray;
       _imageView.animationDuration=10;
        [_imageView startAnimating];
         
        CABasicAnimation *scrollText;
        scrollText=[CABasicAnimation animationWithKeyPath:@"position.x"];
        scrollText.duration = 10.0;
        scrollText.speed= 3; 
        scrollText.repeatCount = 0;
        scrollText.autoreverses = NO;
        
        scrollText.fromValue = [NSNumber numberWithFloat:500];
        scrollText.toValue = [NSNumber numberWithFloat:-200.0];
        
        [[_imageView layer] addAnimation:scrollText forKey:@"scrollTextKey"];

I can see that images are scrolling and it is changing one by one.
But these images are changing irrespectively. I want to change the image one by one when it leaves the frame/Screen. Can any one suggest some idea ?
Scrolling the array of images using the CABasicAnimation
===

I have to scroll the images one by one. THe following are the code which i am using
   
_imageView is UIImageView and imagesArray is the NSArray with array of objects.

       _imageView.animationImages=imagesArray;
       _imageView.animationDuration=10;
        [_imageView startAnimating];
         
        CABasicAnimation *scrollText;
        scrollText=[CABasicAnimation animationWithKeyPath:@"position.x"];
        scrollText.duration = 10.0;
        scrollText.speed= 3; 
        scrollText.repeatCount = 0;
        scrollText.autoreverses = NO;
        
        scrollText.fromValue = [NSNumber numberWithFloat:500];
        scrollText.toValue = [NSNumber numberWithFloat:-200.0];
        
        [[_imageView layer] addAnimation:scrollText forKey:@"scrollTextKey"];

I can see that images are scrolling and it is changing one by one.
But these images are changing irrespectively. I want to change the image one by one when it leaves the frame/Screen. Can any one suggest some idea ?