Created
February 9, 2012 17:27
-
-
Save alastaircoote/1781404 to your computer and use it in GitHub Desktop.
Making the webview wrapper
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
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