PS
Size: a a a
PS
o
o
PS
o
PS
PS
PS
A
VM
A
i
i
i
MF
i
SK
addNewCar() {
let blockSave = UIAlertController(title: "New auto", message: "Add new car", preferredStyle: .alert)
blockSave.addTextField { textField
in
textField.placeholder = "Add car"
}
let cancelBlock = UIAlertAction(title: "Cancel", style: .default)
let saveBlock = UIAlertAction(title: "Save", style: .default) {
_
in
print("save")
}
blockSave.addAction(cancelBlock)
blockSave.addAction(saveBlock)
present(blockSave, animated:
true)
}
SK
o
SK