tags:

views:

215

answers:

2

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.

+2  A: 

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.

Morion
Thanks Morion. It will work.
Rambo
A: 

Ive been trying to also do this for days. Do you have to allocate and instantiate a new appdelegate object in each different class? To me that seems like youd be using different instances of the same variable and it doesnt work when i try it.

Sean