0
我的應用程序沒有崩潰。當我創建DDXMLDocument的autorelease對象時,我的應用程序崩潰了
DDXMLDocument *d = [[DDXMLDocument alloc] initWithData:abookConnData options:0 error:nil];
books = [d nodesForXPath:@"abooks/abook" error:nil];
我將DDXMLDocument的對象更改爲自動釋放,並且我的應用程序開始崩潰。但爲什麼?
DDXMLDocument *d = [[[DDXMLDocument alloc] initWithData:abookConnData options:0 error:nil] autorelease];
books = [d nodesForXPath:@"abooks/abook" error:nil];
我的應用程序在DDXMLNode中崩潰。 [DDXMLNode XMLStringWithOptions:]