在parserDidEndDocument之后加载App

时间:2011-10-26 12:59:53

标签: ios xml-parsing

我正在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,请继续加载应用程序?

1 个答案:

答案 0 :(得分:0)