0
NSXMLParser *xmlParserf = [[NSXMLParser alloc] initWithContentsOfURL:url];
// NSLog(@"URL%@",urlf);
//Initialize the delegate.
XMLParser *parserf = [[XMLParser alloc] initXMLParser];
[xmlParserf setDelegate:parserf];
//Start parsing the XML file.
BOOL successs = [xmlParserf parse];
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
NSLog(@" this xml is %d",[xmlParserf retainCount]);// getting error
NSLog(@" this paaat is %d",[parserf retainCount]);// getting error
if(successs)
{
NSLog(@"ZONE IS PARSED");
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
}
else
{
NSLog(@"NOT PARSED!!!");
}
//[xmlParserf release]; not working
//[parserf release];
現在我不知道什麼時候才能釋放這些在某些線程中運行這些對象
謝謝先生:-) – ram 2010-07-21 01:45:50