@
jerry 嗯~麻烦你了……我检查了好久
A类里面调用的地方
[SimilarityCaculation paticipleSentence:originSentence.text];
(这个相当于[B b])
B类里面:
显示@
interface后面加<NSXMLParserDelegate>
然后3个回调函数:
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict
{
}
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
{
}
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
{
}
然后是呗调用的函数b
- (void)b
{
......
获得NSData data;
......
//开始parser
NSXMLParser *addressParser = [[NSXMLParser alloc] initWithData:data];
[addressParser setDelegate:self];
//[addressParser shouldResolveExternalEntities:YES];
[addressParser parse];
}
在回调函数中加了断点……但是没有进去……