If I am implementing NSURLConnection delegate methods in the AppDelegate and I am calling them from application:didFinishLaunchingWithOptions, then application:didFinishLaunchingWithOptions will execute before the delegate methods.
Since application:didFinishLaunchingWithOptions adds the navigation controller or tab bar controller or whatever view to the main window and display, where would I put the methods below if I need NSURLConnection to finish its download before the first view launches?
self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible];
Basically, I need to download a timestamp online and according to that timestamp, I will either clear and re-download my core data database and then display the view, or I will just display the view. That is why I need NSURLConnection to finish its execution before the view is loaded.
Any suggestions?
Thank you,
Put below line in
Till that you can show splash screen. Default.png