0

I am trying to copy a collectionView I did in IB. Is there any quick way I could use to have a deep copy of the collectionView instead of creating it in my code programmatically and adding the cell views.

Update 1 : UICollectionView created in my storyboard

Basel JD
  • 275
  • 3
  • 17
  • If you mean that you want to have a reference to it in your code than linking it with an outlet should be your answer. http://stackoverflow.com/questions/14576515/how-do-i-connect-a-iboutlet-to-a-uiview – Jad Feitrouni Jan 31 '15 at 13:55
  • Define copy in this context. – Wain Jan 31 '15 at 14:43
  • Did you use it inside storyboard? because if so you can't use it. You need to export the uicollectionview and the uicollectionviewcell to a xib file to reuse it in other ViewController – Blacky Jan 31 '15 at 14:44
  • @JadFeitrouni No I have a reference for it in my code thats not my problem. – Basel JD Feb 01 '15 at 12:21
  • @wain I mean copy as in have an array of it for example (Array of the collectionView I created in my storyboard with several references). – Basel JD Feb 01 '15 at 12:21
  • @Blacky Yes its still in my storyboard. Can you please point me somewhere I could look further into this so I can place it in my xib and use it from there. – Basel JD Feb 01 '15 at 12:22
  • What would you use an array of collection views for? – Wain Feb 01 '15 at 13:01
  • @Wain Im trying to create something like the iPhone springboard... Several CollectionViews stacked next to each other and by swiping I could switch from one collection to another just like the iPhone springboard. Here is my previous question concerning this matter : [link](http://stackoverflow.com/questions/28250695/several-uicollectionviews-scroll-horizontally-like-ibooks) – Basel JD Feb 01 '15 at 13:40
  • You should not create duplicate questions... – Wain Feb 01 '15 at 14:04
  • 1
    Why not to use one collection view to handle all the rest? UICollecitonViewCell can be a collectionView and the super collection view will be with paging enabled... – Blacky Feb 01 '15 at 20:53

0 Answers0