1

For example, this picture shows how the collection View should look like.

picture

I want the First View to show an array of around 6 items in collection view. 2nd View to show an array of objects that relate to the object you click in first view. Which are 50+ objects depending on which object was clicked. For 3rd View is going to be a pop up view of detailed info for the object you clicked in 2nd View.

I know how to fill a collection view but not how to create what I want. Just want a collection view like in the picture, thanks!

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
WokerHead
  • 947
  • 2
  • 15
  • 46

1 Answers1

0

in your collectionViewControllers you can override this method and pass some data to your destination controllers

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?)
sfbarry14
  • 61
  • 5
  • okay thats to prepare but how would I have the data connect with each other? if a user clicks an item in an array, how can I get detailed info related to that item to show? I can't use another array because thats several separate items not a detailed list for each item. – WokerHead Sep 13 '17 at 23:04
  • This post should illustrate things better https://stackoverflow.com/questions/36173734/how-do-i-use-prepareforsegue-in-swift – sfbarry14 Sep 14 '17 at 00:01