Skip to content

newSuperView ni pointer - semi-resolved issue #53

@cjarman

Description

@cjarman

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!)
}
}

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