如何在 iPhone/iPad/iOS 上显示临时弹出消息 [英] How to display temporary popup message on iPhone/iPad/iOS
问题描述
我想在 iPhone/iPad 上显示一条临时消息,显示操作确认,或有关某些后台活动的一些快速状态.
是否有标准控件可以执行此操作?我见过应用程序这样做.一个圆角矩形,深色且部分透明,里面有文字.它不要求用户输入,而是在很短的时间内自行消失.Android 有一个类似的标准结构.也类似于 Growl 显示的窗口.
感谢建议.
cocoacontrols.com 上有一个模拟 Android 风格 Toast 弹出窗口的用户库.可能正是您要找的.p>
http://www.cocoacontrols.com/platforms/ios/controls/altoastview
还有一个遵循相同的想法.
http://www.cocoacontrols.com/platforms/ios/controls/itoast
I'd like to display a temporary message on the iPhone/iPad displaying confirmation of an action, or some quick status about some background activity.
Is there a standard control to do this? I've seen apps do this. A rounded rectangle, dark and partially transparent with text inside. It does not ask for user input but disappears on its own in some short period of time. Android has a similar construct which is standard. Also similar to the windows displayed by Growl.
Suggestions appreciated.
There is a user library on cocoacontrols.com that emulates the Android-style Toast pop-ups. Might be what you are looking for.
http://www.cocoacontrols.com/platforms/ios/controls/altoastview
There's also this one that follows the same idea.
http://www.cocoacontrols.com/platforms/ios/controls/itoast
这篇关于如何在 iPhone/iPad/iOS 上显示临时弹出消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!