How to use a shared array between function calls in a C object

I have one array. I want this array to maintain its value between function calls from one function of the class.

I have a function that is called every time a page loads.

This function displays all the data stored in the array directly from the application launch.

Thanks in advance.

+1
source share
1 answer

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

+2
source

Source: https://habr.com/ru/post/920838/


All Articles