Skip to content

循环引用问题 #22

Description

@GCIOS

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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