title: display activity indicator in iphone titanium
body: <p>I tried everything in order to display an <code>activity indicator</code> inside my iphone app build in titanium.</p>
  
  <p>I did this:</p>
  
  <pre><code>var activityIndicator = Titanium.UI.createActivityIndicator();
  Ti.UI.currentWindow.add(activityIndicator);
  activityIndicator.show();
  </code></pre>
  
  <p>and I got this</p>
  
  <pre><code>"invalid method (createActivityIndicator) passed to UIModule";
  </code></pre>
  
  <p>I also tried this:</p>
  
  <pre><code>  var activityIndicator = Ti.UI.createActivityIndicator({
    color: 'green',
    font: {fontFamily:'Helvetica Neue', fontSize:26, fontWeight:'bold'},
    message: 'Loading...',
    style:Ti.UI.iPhone.ActivityIndicatorStyle.DARK,
    top:10,
    left:10,
    height:'auto',
    width:'auto'
  });
  
    win2.add(activityIndicator);
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>     var dialog = Titanium.UI.createActivityIndicator();
     dialog.message = "Loading...";
     window.add(dialog);
     dialog.show();
  </code></pre>
  
  <p>but obviously <code>NOTHING</code> works. Anyone, any idea about how to make this work?</p>