在 iPhone 上提供非侵入式消息
这是一个愚蠢的问题,但我找不到答案,因为我不知道用来搜索它的术语。
我正在寻找一种简单的方法,向用户提供“状态”消息,例如“数据已更新”,而不必中断他/她正在做的事情(但我想在某些情况下有一个选项可以选择它并执行操作)。
例如;当 iPhone 旋转时,一些应用程序会给出一个带有“锁定屏幕/旋转”的圆角方形半透明,我正在寻找类似的东西(或者像方框“在 Xcode 4 中构建完成”)。
有一个简单的方法可以做到这一点吗? 提前一百万致谢!
This is kind of a silly question, but I cannot find the answer as I don't know the terms with which to search for it.
I am looking for a simple way of giving a 'status' message like 'Data updated' to the user without necessarily interrupting what he/she is doing (but have a option I guess in some instances to tab it an perform an action).
For example; some Apps give a rounded square semi-transparent with 'Lock screen/rotation' when an iPhone is rotated, I am look for something similar (or like the square box 'Build Complete in Xcode 4').
Is there an easy way of doing this?
Thanks a million in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
https://github.com/myell0w/MTStatusBarOverlay
MTStatusBarOverlay 向手机状态栏添加了非常微妙的文本。如果您正在寻找更引人注目的东西,请尝试:
https://github.com/jdg/MBProgressHUD
https://github.com/myell0w/MTStatusBarOverlay
MTStatusBarOverlay adds very subtle text to the phone's status bar. If you're looking for something a little more noticiable, try:
https://github.com/jdg/MBProgressHUD
正如 @kubi 所指出的,MTStatusBarOverlay 是一个很好的工具,我已经通过了 Apple 审阅者的检查。 但是我刚刚发现了一些看起来棒极了的东西...
Tweetbot-Like 警报面板(博客),存储库为 Github 上的 MKInfoPanelDemo。
As @kubi has pointed out, MTStatusBarOverlay is a good one, and I've passed Apple reviewer inspection with it. However I just found something that looks fraking awesome...
Tweetbot-Like Alert Panels (Blog), and the repository is MKInfoPanelDemo at Github.
创建一个可以很好地显示消息的视图,将其添加到窗口中,然后启动 UIView 动画使其消失。在动画结束处理程序(委托或块)中删除视图。
Create a view that shows your message nicely, add it to the window, and start a UIView animation which makes it fade away. In the animation ended handler (delegate or block) remove the view.