0

如何使用 rhomobile 在我的 iphone 中显示警报消息?

谢谢,同伴

4

2 回答 2

2

您使用 Alert.show_message:

http://wiki.rhomobile.com/index.php/RhodesDeviceCapabilities#Alerts

于 2010-12-17T19:17:16.143 回答
0

它非常简单 - 这是我的应用程序中的一个示例。它会弹出一个带有我设置的名为 @@remote_version 的全局变量的瞬时警报,然后在 2 秒后隐藏。

Alert.show_popup :message=> 'Indexing Department List v.' + @@remote_version, :title => 'One Moment Please'
sleep 2
Alert.hide_popup

希望有帮助。-乔恩

于 2011-02-08T20:11:02.893 回答