Rambo
Rambo

Reputation: 591

How to use shared array between function calls in objective C

I have one array. I want that array to retain its value between function calls of from single class function.

I have function that is called every time page is loaded.

This function displays all the data stored in array right from application launches.

Thanks in advance.

Upvotes: 1

Views: 657

Answers (1)

Morion
Morion

Reputation: 10860

You can store your array in appDelegate class. Or I think it will be better to make some class to store shared data and make an instance of this class in your appDelegate.

Upvotes: 2

Related Questions