Answers for "tap to delete xcode"

0

tap to delete xcode

override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        
        let hello = hellos[indexPath.row]
        if let context = (UIApplication.shared.delegate as? AppDelegate)?.persistentContainer.viewContext {
            context.delete(hello)
            (UIApplication.shared.delegate as? AppDelegate)?.saveContext()
            loadData()
        }
        
    }
Posted by: Guest on April-15-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language