Chris W.
Chris W.

Reputation: 655

How to create a full-screen modal status display on iPhone?

I'm trying to create a modal status indicator display for an iPhone app, and would like one similar to this one used in Tweetie:

enter image description here

Specifically, this one "shades out" the entire screen, including the toolbar. I don't believe through any normal UIView manipulation, I can extend past the bounds of my window, can I? I believe I've seen a status indicator like this somewhere else on iPhone, possibly when I added an Exchange e-mail account.

I've tried subclassing UIAlertView and overriding its drawRect method. If I don't call [super drawRect:] it doesn't ever display the normal UIAlertView text box, however my drawing rectangle is in an odd size and position.

Anyone have any advice to accomplish this?

Upvotes: 3

Views: 7544

Answers (3)

Lounges
Lounges

Reputation: 4664

Take a look at the source code to the WordPress application. They have code which you can basically drag and drop into your application to do this.

http://iphone.wordpress.org/development/

Upvotes: 3

user81434
user81434

Reputation:

Check out MBProgressHUD.

Upvotes: 7

Shaggy Frog
Shaggy Frog

Reputation: 27601

I haven't done this myself, but you could layer a UIView at the top of the view hierarchy, and use setHidden to dynamically show or hide it. Since it's at the top of the stack, it should be able to intercept all touch events.

Upvotes: 0

Related Questions