Skip to content

循环引用问题 #22

@GCIOS

Description

@GCIOS

public class EmptyState {
...
private var tableView: UITableView?
...
}

当我 调用 self.tableView.emptyState.show(emptyState) 时, 就会出现循环引用问题;
应该改为 weak var

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