Created
January 31, 2015 11:15
-
-
Save bartleby/20a0f496add4064b7ced to your computer and use it in GitHub Desktop.
Random Image Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSArray *)imageURLs | |
{ | |
if (!_imageURLs) | |
{ | |
NSMutableArray *imageURLs = [NSMutableArray array]; | |
for (NSInteger index = 0; index < 100; ++index) | |
{ | |
[imageURLs addObject:[NSString stringWithFormat: | |
@"http://dummyimage.com/200/%06X/%06X&text=%ld", | |
arc4random() % 0xFFFFFF, | |
arc4random() % 0xFFFFFF, | |
index + 1]]; | |
} | |
_imageURLs = imageURLs; | |
} | |
return _imageURLs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment