Skip to content

Instantly share code, notes, and snippets.

@alastaircoote
Created February 9, 2012 17:27
Show Gist options
  • Save alastaircoote/1781404 to your computer and use it in GitHub Desktop.
Save alastaircoote/1781404 to your computer and use it in GitHub Desktop.
Making the webview wrapper
var baseWindow = Titanium.UI.createWindow({
title: "",
barColor: "#232323",
title: "Front Page",
backgroundImage: "images/bgpattern_dark.png"
});
var mainWebView = Ti.UI.createWebView({
url:"html/index.html",
backgroundColor: "transparent",
height: "100%",
top:0
});
var navGroup = Ti.UI.iPhone.createNavigationGroup({
window:baseWindow,
visible:false
});
var main = Ti.UI.createWindow();
baseWindow.add(mainWebView);
main.add(navGroup);
main.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment