@IBAction func didRemoveBarButtonItemTapped(_ sender: Any) {
presentAlert(title: "Uyarı!",
message: "Listedeki bütün öğeleri silmek istediğinize emin misiniz?",
defaultButtonTitle: "Evet",
cancelButtonTitle: "Vazgeç") { _ in
let appDelegate = UIApplication.shared.delegate as? AppDelegate
let managedObjectContext = appDelegate?.persistentContainer.viewContext
for item in self.data {
managedObjectContext?.delete(item)
}
try? managedObjectContext?.save()
self.fetch()
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Burakacik/Patika_ListApp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Patika.dev / Swift İle iOS Programlama Patikası / Swift
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published