How to use an array over multiple view controllers?
<p>I have been playing around with a lot of stuff involving arrays and scrollviews.  I have mostly stayed within the confines of view controllers, so usually i'll grab data from firebase, add it to an array, and then send it to the tableview or collectionview.  What I'm trying to do now is actually navigate between viewcontrollers (or multiple copies of the same view controller) and applying the array items to each view controller.  </p>

<p>For example I want to be able to grab some photos from firebase, put them in an array of url strings or whatever.  Then I want to put a photo on the background of a view controller.  Then when I push the over button it goes navigates to the next view controller and puts the next photo as the background there, etc.  </p>

<p>I understand there are probably multiple ways to do this and I was wondering what is the most efficient way?  Do I just put an array in a Global class and access that from all the view controllers?  Or do I just keep the array in the first view controller, then as I navigate, keep sending it to the next view controller over and over?  Also there will be a LOT of items and objects and arrays here so that's why I'm looking for efficiency.  Thanks in advance to anyone able to help with this, and I hope I explained it well enough!</p>