Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Question about create Windows inside Functions

If I have this function on my code:

function showHome(orientation)
    var appVer = Ti.UI.createWindow({
          backgroundColor: '#000',
          width: 768

And I call it from different parts of the code, every time generate a new window? (what mean space in memory), or overwrite the same? (and not increase the memory usage).

If this create a new window every time, which it's the best practice for doing this ?

Thanks for your help!

— asked September 10th 2010 by Esteban Fernandez
  • functions
  • window

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.