Created
November 8, 2017 05:38
-
-
Save rakhimoni/a801f624bc838da0e303a0a3589d8f16 to your computer and use it in GitHub Desktop.
OS_IOS assigned to a variable
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
[INFO] : Finished building the application in 16s 741ms | |
[INFO] : Launching iOS Simulator | |
[INFO] : ttttt/1.0 (6.2.2.42c7196) | |
[INFO] : ANIMATED true |
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 ANIMATED; | |
function test(e) { | |
if (OS_IOS) { | |
ANIMATED = OS_IOS; | |
alert('ANIMATED is '+ANIMATED); | |
Ti.API.info('ANIMATED '+ANIMATED); | |
} | |
} | |
$.index.open(); |
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
<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