在实际的项目开发中,我们常常需要对用户进行某些提示,此时弹出提示对话框就显得十分方便,那么应该怎么实现呢?
实现代码如下:
var alert = UIAlertView() alert.title = "温馨提示" alert.message = "欢迎您使用App" alert.addButtonWithTitle("OK") alert.show()
最后的实现效果如下:
.
github主页:https://github.com/chenyufeng1991 。欢迎大家访问!