var alert = UIAlertView() alert.title = "Refresh?" alert.message = "All data[\(tvData.getData(indexPath) as String)] will be selected." alert.addButtonWithTitle("Cancel") alert.addButtonWithTitle("OK") alert.show()原文链接:https://www.f2er.com/swift/327683.html