Skip to content

Instantly share code, notes, and snippets.

@alanleard
Created January 5, 2012 22:32
Show Gist options
  • Save alanleard/1567694 to your computer and use it in GitHub Desktop.
Save alanleard/1567694 to your computer and use it in GitHub Desktop.
Image Display webview vs image
var win = Ti.UI.createWindow();
var webview = Ti.UI.createWebView({
html:'<html><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><img src="http://b.vimeocdn.com/ps/929/929705_300.jpg"></html>'
});
win.add(webview);
// var image =Ti.UI.createImageView({
// image:'http://b.vimeocdn.com/ps/929/929705_300.jpg',
// width:'100%',
// height:'100%',
// });
// win.add(image);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment