Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int numberOfImages = (int)[self.mainImages count];
- int randomIndex = arc4random() % numberOfImages;
- MainImage *imageView = [self.mainImages objectAtIndex:randomIndex];
- self.mainImageView.image = imageView.mainTextImage;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement