is it possible to reuse appdelegate in applicationDidFinishLaunching?
-
16-09-2019 - |
Question
I am developing a tab bar application.
I have five tabs in it.
For each tab i have separate navigation controller.
For each tab's table View I want to load data from a web service.
I can do so for one tab by making a separate xmlparser class initializing it with appdelegate then call it in the applicationDidFinishLaunching .
I Can't do so for other tabs . I think that appdelegate conflicts or is it something else is the problem or any other solution .
Solution
Create a new appdelegate;
MyAppdelegate *appDelegate = (MyAppdelegate*)[[UIAplication sharedApplication] delegate];
and call applicationDidFinishLaunching.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow