jjzjj

newItemPrompt

全部标签

ios - 如何在 swift 中禁用 UIAlertController 的解雇

如何在不关闭UIAlertController的情况下运行“保持”按钮的操作?我找到了禁用按钮的解决方案,但这不是我需要的。newItemPrompt=UIAlertController(title:"title",message:"message",preferredStyle:UIAlertControllerStyle.Alert)letcancelAction=UIAlertAction(title:"Cancel",style:UIAlertActionStyle.Default,handler:nil)letokAction=UIAlertAction(title:"OK"