AutocompleteTextfieldSwift icon indicating copy to clipboard operation
AutocompleteTextfieldSwift copied to clipboard

newSuperView ni pointer - semi-resolved issue

Open cjarman opened this issue 8 years ago • 0 comments

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

cjarman avatar Feb 09 '17 23:02 cjarman