如何:在Swift中显示没有UIAlertController的警报

时间:2018-03-13 08:33:42

标签: ios

Iam开发iOS简单登录我希望在文本字段的婴儿中插入错误的用户名时向用户显示警报而不使用UIAlertController 如何:在Swift中使用UIAlertController显示警报......

1 个答案:

答案 0 :(得分:0)

Toast-Swift框架将帮助您,在没有UIAlertController的情况下呈现警报。

self.view.makeToast("This is a piece of toast", duration: 3.0, position: .top)