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
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.