我正在AppDelegate
didFinishLaunchingWithOptions
内的parserDidEndDocument
读取XML,但问题是我的应用已在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
[self openXML];
NSLog(@"loaded?"); //target
[self.window addSubview:tabController.view];
[self.window makeKeyAndVisible];
return YES;
}
- (void)parserDidEndDocument:(NSXMLParser *)parser{
NSLog(@"loaded.");
}
被触发之前加载了!
parserDidEndDocument
如何在{{1}}触发之前保持加载应用程序?
此外,我该如何进行&如果我因任何原因无法加载XML,请继续加载应用程序?
答案 0 :(得分:0)