-1

I want to create a float[][] array in one ViewController, but also use it in an different Viewcontroller, so I have to pass it.

I made my own class, which creates and holds this array, but how do I pass this class-instance when switching?

Cœur
  • 37,241
  • 25
  • 195
  • 267
DomiDiDongo
  • 133
  • 10

1 Answers1

0

For passing value to one class to another there are many ways like

  • create a global variable
  • create a singleton class
  • NSUserDefault
  • Segue
  • Properties

As per your requirement use any one from it

Pravin Tate
  • 1,145
  • 8
  • 18