Skip to content

Instantly share code, notes, and snippets.

@pmark
Created April 14, 2011 00:21
Show Gist options
  • Save pmark/918699 to your computer and use it in GitHub Desktop.
Save pmark/918699 to your computer and use it in GitHub Desktop.
How to properly attribute 3DAR on your app's HTML about page.
// In the web view's controller set the UIWebView's baseURL to the resource bundle path.
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
[webView loadHTMLString:htmlString baseURL:baseURL];
// Download this powered by image and put it in your app's resource bundle.
// https://spotmetrix.s3.amazonaws.com/3DAR/powered_by_3dar_310x50.png
//
// Display the powered by 3DAR image in the About page's HTML.
<img src="powered_by_3dar_310x50.png"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment