Skip to content

Instantly share code, notes, and snippets.

@FokkeZB
Created January 21, 2014 18:13
Show Gist options
  • Save FokkeZB/8545114 to your computer and use it in GitHub Desktop.
Save FokkeZB/8545114 to your computer and use it in GitHub Desktop.
Need a Window on IOS but a View on Android in Alloy?
<Alloy>
<Window module="xp.ui">
<Label>Hello World</Label>
</Window>
</Alloy>
exports.createWindow = function(args) {
return Ti.UI[OS_IOS ? 'createWindow' : 'createView'](args);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment