How to clear/reset all CoreData in one-to-many relationship
问题 I am using coreData, with one -to-many realtionship, I have a folder entity and a file entity. A folder can have many files and so on. So, I have two ViewControllers, FolderViewController and FileViewController which contains folders and files respectively.Now I have a modalView , which is accesible from both folder and file viewcontroller. In this VC I have a button to Reset all Data. So when I click this I want all the data should reset. I used this code,this function is written in