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

newSuperView ni pointer - semi-resolved issue #53

Open
cjarman opened this issue Feb 9, 2017 · 0 comments
Open

newSuperView ni pointer - semi-resolved issue #53

cjarman opened this issue Feb 9, 2017 · 0 comments

Comments

@cjarman
Copy link

cjarman commented Feb 9, 2017

Changed this line as once the parent viewController was dismissed a nil pointer error was being thrown after returning to the previous viewController.

While the fix works i'm not sure as to what is the underlying issue.

open override func willMove(toSuperview newSuperview: UIView?) {
super.willMove(toSuperview: newSuperview)
commonInit()
//Changed this
if (newSuperview != nil){
setupAutocompleteTable(newSuperview!)
}
}

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