I am using SMP 2.3 to get the data from backend. Which is the best way to do this? - NSOperation,GCD,Thread or simply writing everything in the main Thread.
Asked
Active
Viewed 100 times
0
-
Use GCD (Grand Central Dispatch. – Himanshu Joshi Mar 10 '14 at 09:06
-
What sense of "best"? – Stephen Darlington Mar 10 '14 at 09:19
-
@StephenDarlington : By best, I mean an efficient way to synchronize the data. The data synchronization and loading should occur in the background so that the app does not freeze. – abhhab Mar 10 '14 at 09:23
-
I would suggest to read the documentation of SMP and figure what "data synchronization" means in this context. – CouchDeveloper Mar 10 '14 at 10:43
-
@abhhab I'm afraid your question has insufficient detail to say anything other than "not the main thread." And, for all I know, SMP could do its work on a background thread automatically. – Stephen Darlington Mar 10 '14 at 15:16