0
一個application.In該應用程序IAM工作,我宣佈viewDidLoad中的的NSXMLParser對象method.But哪裏這個對象可以release.So請告訴我這是發行版object.See我的代碼中的正確位置如何釋放NSXmlParser對象?
NSString *xmlFilePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"xml"];
NSData *data=[NSData dataWithContentsOfFile:xmlFilePath];
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:data];
[xmlParser setDelegate:self];
[xmlParser setShouldProcessNamespaces:NO];
[xmlParser setShouldReportNamespacePrefixes:NO];
[xmlParser setShouldResolveExternalEntities:NO];
[xmlParser parse];