开发者

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 w开发者_如何学JAVAould like one similar to this one used in Tweetie:

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

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?


Check out MBProgressHUD.


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/


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜