0
我正在從我的AppDelegate
didFinishLaunchingWithOptions
內的互聯網讀取XML,但問題是我的應用程序被加載之前parserDidEndDocument
被觸發!加載應用程序後parserDidEndDocument
- (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
?
此外,我怎麼能繼續&繼續加載應用程序,如果我不能加載任何理由的XML?
這個問題是關於iOS的,它與Xcode無關 – Phlibbo