I have an app where there is a window. In that window there is a view and that view has a button in it. I want to close the window and free the memory which was being used by the window.
So, can we create a method which will iterate through a window and get all the controls so that we can make the elements like button in a view to null after it is used.
I am assuming that you are trying to free memory and want to prevent memory leaks,you can do it this way
For further reference follow this link for Managing Memory and Finding Leaks :
https://wiki.appcelerator.org/display/guides/Managing+Memory+and+Finding+Leaks#ManagingMemoryandFindingLeaks-WhenTitaniumreleasesmemory