如何在iPhone上创建全屏模态状态显示? [英] How to create a full-screen modal status display on iPhone?

查看:182
本文介绍了如何在iPhone上创建全屏模态状态显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为iPhone应用创建模态状态指示器显示,并希望类似于Tweetie中使用的类似状态指示器显示:

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:

具体来说,这一个隐藏整个屏幕,包括工具栏。我不相信通过任何正常的UIView操作,我可以延伸超过我的窗口的边界,可以吗?我相信我已经看到像iPhone这样的其他地方的状态指示器,可能是当我添加一个Exchange电子邮件帐户。

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.

我试过子类化UIAlertView和覆盖它的drawRect方法。如果我不调用[super drawRect:]它不会显示正常的UIAlertView文本框,但是我的绘图矩形是在一个奇怪的大小和位置。

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?

推荐答案

看看WordPress应用程序的源代码。他们有代码,你可以基本上拖放到你的应用程序这样做。

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/

这篇关于如何在iPhone上创建全屏模态状态显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆