I am using sqlite to store the array of data and I have more than one view controller in my application and my question is Is it right to create a singleton class to control that array of information coz I don't want to recreate the array from sqlite file every time loading a new view controller into the memory?
3
-
1Of course. Why do you even ask?– DarkDustCommented Aug 9, 2013 at 7:00
-
Does each view really show exactly the same data?– WainCommented Aug 9, 2013 at 7:01
-
@Wain yes they are. I asked this because I have not done like this before.I always load array while loading a new view controller into the memory.– vignesh kumarCommented Aug 9, 2013 at 7:08
Add a comment
|