Created
August 14, 2014 04:46
-
-
Save cshireman/288426a6f8a09cbaa243 to your computer and use it in GitHub Desktop.
Titanium: Alloy viewDidAppear
This file contains hidden or 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
//Equivalent to viewDidAppear. Have to use a state variable to make sure this is only called once. | |
$.hasAppeared = false; | |
$.getView().addEventListener("postlayout",function(){ | |
if(!$.hasAppeared) | |
{ | |
$.hasAppeared = true; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment