Skip to content

Instantly share code, notes, and snippets.

@solsolomon
solsolomon / gist:3828587
Created October 3, 2012 17:52
IPhone Snippets
//Web View
CGRect webFrame = CGRectMake(0.0, 0.0, 320.0, 460.0);
UIWebView *webView = [[UIWebView alloc] initWithFrame:webFrame];
[webView setBackgroundColor:[UIColor whiteColor]];
NSString *urlAddress = @"http://www.google.com";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
[self addSubview:webView];
@solsolomon
solsolomon / module.js
Created May 3, 2011 20:29
module pattern stub
var stub = function (settings) {
var _settings = {
$container: $('#container')
};
if (settings) {
$.extend(_settings, settings);
}
_returnObject = {