Error showing a UIAlertView in swift

前端 未结 7 2038
独厮守ぢ
独厮守ぢ 2021-02-20 06:11

Im trying to show a UIAlertView in my swift App

    alert = UIAlertView(title: \"\",
        message: \"bla\",
        delegate: self,
        cancelButtonTitle:         


        
7条回答
  •  臣服心动
    2021-02-20 06:48

    This is what I have used to make an alert popup in swift.

    let myAlert = UIAlertView(title: "Invalid Login",     
    message: "Please enter valid user name",       
    delegate: nil, cancelButtonTitle: "Try Again") 
    myAlert.show()
    

提交回复
热议问题