Skip to content

Instantly share code, notes, and snippets.

@rakhimoni
Created November 8, 2017 05:38
Show Gist options
  • Save rakhimoni/a801f624bc838da0e303a0a3589d8f16 to your computer and use it in GitHub Desktop.
Save rakhimoni/a801f624bc838da0e303a0a3589d8f16 to your computer and use it in GitHub Desktop.
OS_IOS assigned to a variable
[INFO] : Finished building the application in 16s 741ms
[INFO] : Launching iOS Simulator
[INFO] : ttttt/1.0 (6.2.2.42c7196)
[INFO] : ANIMATED true
var ANIMATED;
function test(e) {
if (OS_IOS) {
ANIMATED = OS_IOS;
alert('ANIMATED is '+ANIMATED);
Ti.API.info('ANIMATED '+ANIMATED);
}
}
$.index.open();
<Alloy>
<Window class="container">
<Label id="label" onClick="test">Hello, World</Label>
</Window>
</Alloy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment