Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. int numberOfImages = (int)[self.mainImages count];
  2. int randomIndex = arc4random() % numberOfImages;
  3. MainImage *imageView = [self.mainImages objectAtIndex:randomIndex];
  4.  
  5. self.mainImageView.image = imageView.mainTextImage;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement