0
-(void)walkDOM:(SEL)visitor node:(QuadNode*)node {
    [self performSelector:visitor withObject:node]; /* ------>100% leaks shown here */
    NSArray* children = node.children;
    if (children) {
        for (QuadNode* child in children) {
            [self walkDOM:visitor node:child];
        }
    }
}

我不知道上面有什么问题,它崩溃了。任何帮助建议!!!!!!

编辑:

-(void)registerFramesetterVisitor:(TDOMNode*)node {
     [strMaker reset]; 
     [node registerFramesetter:self]; 
}
4

1 回答 1

1

这只是编译器警告的问题,您可以使用以下方法抑制它们:

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
    [self performSelector:visitor withObject:node];
#pragma clang diagnostic pop

资源

于 2012-08-22T10:06:17.373 回答