Hello! I have a very simple question, as I have already found a solution for her, but it still seems problematic to me. I'll explain:
I created a web service connection to receive some data, and in the end I am storing this data in a dictionary, which in turn gets saved in an array.
But I need this array to be initialized elsewhere, within the class that will save the data in sqlite. But I do not know how to initialize this array with the data that was received from the web service.
The solution I found was to use AppDelegate. The AppDelegate would have a variable that would get this array, and then I would generate an AppDelegate instance within the class that manages the sqlite database. However, I believe that depending on the amount, and volume of data in the tables, I could overload the AppDelegate, consuming a lot of memory.
Someone would know how to solve this problem!
Thank you.