Posts

Step By Step Process to Save/Fetch/Delete and Sorting the Data From Coredata

Image
Here is the Step By Step Process to Save , Fetch , Delete and Sorting the Data From Coredata : Step 1 : Create the New Project : Step 2 : After Click on the Next , Enter the your Project name and select the Use Coredata option. Core Data is one of the most popular frameworks provided by Apple for iOS and macOS apps. Core data is used to manage the model layer object in our application. You can treat Core Data as a framework to save, track, modify and  filter  the data within iOS apps, however, Core Data is not a Database. Step 3 : Now create table view from default view controller and add the bar button item in headerview or navigation controller  through pragmatically or storyboard.   // create the tableview  programatically  and appending the data through array to tableview import UIKit import CoreData class ViewController: UIViewController , UITableViewDelegate , UITableViewDataSource {     var array1=[ coredatModels ]()     let mytableview = UI