I would like to know based on my code, how can i add fade in fade out effect between each images in my NSArray. As i am using these images as background. Changing background without fade in and out looks horrible.
Here is my code.
- (void)viewDidLoad
{
    [super viewDidLoad];
    NSArray *imageNames = @[@"1.jpg", @"2.png", @"3.png", @"4.png",
                            @"5.png"];
    NSMutableArray *images = [[NSMutableArray alloc] init];
    for (int i = 0; i < imageNames.count; i++) {
        [images addObject:[UIImage imageNamed:[imageNames objectAtIndex:i]]];
    }
    // Normal Animation
    UIImageView *animationImageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
    animationImageView.animationImages = images;
    animationImageView.animationDuration = 9;
    [self.background addSubview:animationImageView];
    [animationImageView startAnimating];}