I have an app which during start, is presented with a Table view controller and a navigation bar with an + button.
So far i have this working well to the point where i can save and delete or edit these objects added to the table view. Each individual Item in this table view is selectable and acts like a folder to get a better picture.
My problem is, how can i work on adding sub data to specific Parent folders?
Sort of works like this graphic representation:
Folder_one --> item1
item2
Folder_two --> item1
Folder_three --> item1
item2
item3
item4
I managed to save the Folders on the Parent view controller and selecting one of them, would navigate to the selected folder's table view controller where the user is yet presented with another + button to add an item which stores data to that particular folder. The user can add as many as he/she wants but i cannot seem to work my way around or figure it out how it would work.
My data model in Core Data is:
Entity name: Folder
Attributes: 'name' of type String
' tabColor' of type Transformable
I have nothing in 'Relationship' nor 'Fetched Properties'
Any help or suggestions from experienced Core Data developers would greatly help overcome this little to big task.