Say I have View Controller A, where I have an array with data. Now I also have a couple of other View Controllers (B,C,D, etc...)where I need that array.
I know I could pass the data forward using segues to each of the other View Controllers. But It seems not the perfect solution for me as I have to pass the data each time through a lot of different View Controllers
I would rather have a method where I define in View controller B "Get the data from View Controller A"
(As I understand passing data backwards is not what I want to achieve because I don't want to change the array in View controller B and pass it back to View Controller A. I only want to read/get the data within View Controller B from View Controller A.
Can somebody point me to a solution for this? Or do I have to pass the data forward from VC A to VC B?
I guess it is a matter of taste but I would rather write my code in VC B/C/D in case I need the data from VC A than passing each time data from A to every other VC...