     override func viewDidLoad() {
         super.viewDidLoad()
         
+        configureFetchedResultsController()
         
         dateFormatter.dateStyle = DateFormatter.Style.short
         dateFormatter.timeStyle = DateFormatter.Style.medium

        saveObject()
    }
    @IBAction func clickFetchBtn(_ sender: UIButton) {
//        configureFetchedResultsController()
    }
    @IBAction func clickLogBtn(_ sender: UIButton) {
        for object in (fetchedResultsController?.fetchedObjects)! {
            let task = object as! Task
            print("\(String(describing: task.taskName)), \(String(describing: task.taskType))")
        }
//        let task = fetchedResultsController?.object(at: IndexPath(item: 0, section: 0)) as! Task
//        print("\(task.taskName)")

import UIKit
import CoreData

class ViewController: UIViewController, CoreDataManagerViewController, NSFetchedResultsControllerDelegate {
    
    var coreDataManager: CoreDataManager?
    var modelObjectType: ModelObjectType?
