Skip to content

MJLevelOrderPrinter 删除所有的null时有bug #8

@DHLau

Description

@DHLau

问题代码:

[rowNodes removeObject:[NSNull null]];

可以修改为

NSMutableArray *array = rowNodes.mutableCopy;
        for (id data in array) {
            if ([data isKindOfClass:[NSNull class]]) {
                [rowNodes removeObject:data];
            }
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions