Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot form weak reference to instance #3

Open
AlleniCode opened this issue Oct 26, 2021 · 2 comments
Open

Cannot form weak reference to instance #3

AlleniCode opened this issue Oct 26, 2021 · 2 comments

Comments

@AlleniCode
Copy link

QQ20211026-194335

Storyboard TableViewController

When pop viewController it crashed here.

@AlleniCode
Copy link
Author

Just crashed on UITableViewController, works well on UIViewController.

@AlleniCode
Copy link
Author

override open func willMove(toSuperview newSuperview: UIView?) {
		super.willMove(toSuperview: newSuperview)

		// Set colors for proper positions
		self.configureThumbColors()
		self.configureTrackColors()

		// set initial position
        if newSuperview == nil {
            self.changeThumbState(on: isOnPrivate, animated: false, sendAction: false)
        } else {
            self.changeThumbState(on: isOnPrivate, animated: false, sendAction: true)
        }
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant