I am trying to make an event planning app where the user enters various entries to plan an event (eg: title, location, when, etc). Users have options to choose from different themes, such as, birthday party, graduation party, house party, baby shower, etc.
I am using different view controllers for each theme. I am using my viewController.swift file to show data in a tableview. and for my other viewControllers, I have cocoa-touch files assigned to each of them.
Now let's pretend a user wants to plan a house party. First user will click on the house party button. That will direct the user to a different viewController (houseParty.swift). Here, user will be able to enter all the data necessary to organize the event (title, location, when, why, etc). Everything will be stored in an arrays of each type, meaning, Titles will have a different array, location will have a different array, etc.
Now, I want to be able to access those arrays in my viewController.swift file to preset those data in a tableview cell. How do i do that? I am making an object/instance of a class houseParty.swift in viewController.swift file and trying to access arrays but I am unable to do so.
var house = houseParty()
house.arrayName // Getting error here. It wont recognize an array from that file.