-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,807
  • 6
  • 41
  • 103
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,807
  • 6
  • 41
  • 103
Misha
  • 5,260
  • 6
  • 35
  • 63