引用链接UIAlertController - add custom views to actionsheet 我的 UI 布局。
我的应用程序中有相同的自定义操作表布局。代码也是这样写的。我注意到在 swift4 中“取消”按钮不执行任何操作。当我点击下面代码中的“取消”按钮时
let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: {(alert: UIAlertAction!) in
print("Cancel")
})
代码:print(Cancel")
不执行。
最佳答案
关于ios - 取消按钮在自定义操作表中不可点击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46701807/