-1

I wanted to know it there's a possibility to store data to a NSMutableArray after the user presses an UIButton.

The thing here is that the button is in another view controller than the array. I have a TestViewController where i added a buttonPressed: which will send the produkt name "Tubolit Schläuche" to an NSMutableArray in FirstViewController.

How can I do this?

IluTov
  • 6,645
  • 6
  • 37
  • 99
Grangj
  • 3
  • 1

1 Answers1

0

Create SingleTone class with property which is your NSMutableArray. Then use this class where you want in your app.

IluTov
  • 6,645
  • 6
  • 37
  • 99
Misha
  • 5,090
  • 5
  • 34
  • 61