Skip to content

Instantly share code, notes, and snippets.

@hunk
Created April 12, 2012 02:11
Show Gist options
  • Save hunk/2364274 to your computer and use it in GitHub Desktop.
Save hunk/2364274 to your computer and use it in GitHub Desktop.
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
int numFrase = arc4random() % 3;
NSString *html = [NSString stringWithFormat:@"<html><body style=\"background-color: transparent;\" ><img src='%d.gif'></body></html>",numFrase];
if (cual == 2) {
[homero loadHTMLString:html baseURL:baseURL];
}else{
[dos loadHTMLString:html baseURL:baseURL];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment