Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

fetch request core data

// entire usable func for fetching data
    func loadData() {
        if let context = (UIApplication.shared.delegate as? AppDelegate)?.persistentContainer.viewContext {
            if let hellos = try? context.fetch(Hello.fetchRequest()) as? [Hello] {
                
            }
            
        }
    }
 
PREVIOUS NEXT
Tagged: #fetch #request #core #data
ADD COMMENT
Topic
Name
6+2 =