Problems with getting text from UIAlertView textfield

前端 未结 4 897
滥情空心
滥情空心 2020-12-15 13:08

In my application I want a alert with a textfield. After clicking on \"Done\" I want to save the textfield input in a String. After clicking on \"Cancel\" I want only to clo

4条回答
  •  渐次进展
    2020-12-15 13:38

    You will have to implement the UIAlertViewDelegate's

    optional func alertView(_ alertView: UIAlertView, clickedButtonAtIndex buttonIndex: Int)
    

提交回复
热议问题