Titanium Community Questions & Answer Archive

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

iPhone: Why Doesn't Activity Indicator Appear?

Hello,

I'm trying to display an activity indicator but it does not appear on the iPhone. It DOES appear on the Android simulator. I'm sure it's something easy but I can't figure out what I'm doing wrong!

The code for the screen (login.js) is located here:

http://pastie.org/999568

My app uses an app.js file that just launches the screen above by doing this:

app.js:

//create the login window
var loginWindow = Ti.UI.createWindow({
    url: "login/login.js",
    title: "RAVE Login",
    barColor: "#787878"
});

loginWindow.open();

Any idea why the activity indicator in login.js never shows on iPhone but does on Android?

Thank you!!!

-Ryan

— asked June 10th 2010 by Ryan Asleson
  • activityindicator
  • iphone
0 Comments

1 Answer

  • Accepted Answer

    The activity indicator shows by default on Android in a modal window, but on iPhone you need to add it somewhere in the window or a view - doing something like:

    me.setRightNavButton(actInd);
    

    should get you where you are going. The examples in the Kitchen Sink demonstrate various ways to accomplish this.

    — answered June 10th 2010 by Kevin Whinnery
    permalink
    3 Comments
    • Link to examples in the Kitchen Sink is broken.

      — commented June 15th 2011 by Joe Wheaton
    • Updated KitchenSink URL here.

      — commented September 11th 2011 by Sharry Stowell
    • Updated KitchenSink URL is broken.

      — commented November 23rd 2012 by Pragnesh Ambani
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.