adding a background image to a ui collection view

ios, ipad, user-interface

Solution

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.collectionView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"imageName.pnd"]];
}

Problem

I am new to iOS development and I was wondering how do I add a background image that will repeat vertically to my UI Collection View that I have created to display an array of images?

Original source