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?DarkDust– DarkDust2013-08-09 07:00:13 +00:00Commented Aug 9, 2013 at 7:00
-
Does each view really show exactly the same data?Wain– Wain2013-08-09 07:01:45 +00:00Commented 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 kumar– vignesh kumar2013-08-09 07:08:04 +00:00Commented Aug 9, 2013 at 7:08
Add a comment
|