Skip to content

saiful-i/SimpleCoreData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SimpleCoreData

Simple iOS App to implement persist data using Core Data (create, retreive, update and delete) and bind it to UITableViewCell.

Function

  • Create
func  create(firstName: String, lastName: String, email: String)

Will create NSEntityDescription and save it in to NSManagedObject

  • Retreive
func  retrieve() -> [UserModel]

Fetching request using NSFetchRequest<NSFetchRequestResult>

  • Update
func  update(_  firstName: String, _  lastName: String, _  email: String)

Filtering entity NSFetchRequest<NSFetchRequestResult> with NSPredicate using email and then update the value and save the NSManagedObjectContext

  • Delete
func  delete(_  email: String)

Filtering entity NSFetchRequest<NSFetchRequestResult> with NSPredicate using email and then delete the NSManagedObjectContext

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages