在parserDidEndDocument()中推送到View Controller - IOS

时间:2016-07-18 09:34:18

标签: ios objective-c xcode xml-parsing

我正在尝试在处理xml标签后推送到View Controller名称“HomeViewController”, 我想在parserDidEndDocument方法中导航到“HomeViewController”屏幕,

-(void)parserDidEndDocument:(NSXMLParser *)parser{
[self.delegate parsingComplete:catalogArray];
// Here i need to push to HomeViewController

}

任何人都可以给我一个想法吗

1 个答案:

答案 0 :(得分:0)

HomeViewController * homeView = [self.storyboard instantiateViewControllerWithIdentifier:@“storyBoardIdentifier”]; [self.navigationController pushViewController:homeView animated:YES];