[MonoTouch] NetworkActivityIndicatorVisible with MonoTouch.Dialog

danmiser danmiser at gmail.com
Fri Mar 2 17:20:27 UTC 2012


Has anyone got the NetworkActivityIndicatorVisible to work on the device
while using MonoTouch.Dialog?

I create a button like this:

StyledStringElement btnLogin = new StyledStringElement("Login", delegate {
DoLogin(); });

When I click the button it does take me to this method:
public void DoLogin()
{
  UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;
  try {
    ... do work
  }
  finally {
    UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false;
  }
}

The spinning indicator doesn't show up. I've tried while debugging and
tethered via USB, and also by just running the app with a wifi connection.

I'm using MT 5.2.

Anyone seeing the same thing? Anything look obviously wrong?

Thanks

--
View this message in context: http://monotouch.2284126.n4.nabble.com/NetworkActivityIndicatorVisible-with-MonoTouch-Dialog-tp4439142p4439142.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list