Closed jaymathew closed 7 years ago
I start typing and the tableview pops up like expected but it's blank. here are the func's I'm using swift 3 xcode 8 `
func configureTextFields(){ employeeNameTextField.autoCompleteTextColor = UIColor.black employeeNameTextField.autoCompleteTextFont = UIFont.systemFont(ofSize: 14.0) employeeNameTextField.autoCompleteCellHeight = 35.0 employeeNameTextField.maximumAutoCompleteCount = 20 employeeNameTextField.hidesWhenSelected = true employeeNameTextField.hidesWhenEmpty = true employeeNameTextField.enableAttributedText = true var attributes = [String:AnyObject]() attributes[NSForegroundColorAttributeName] = UIColor.black attributes[NSFontAttributeName] = UIFont(name: "HelveticaNeue-Bold", size: 12.0) employeeNameTextField.autoCompleteAttributes = attributes } func handleTextFieldInterfaces(){ employeeNameTextField.onTextChange = {[weak self] text in if !text.isEmpty{ self?.employeeNameTextField.autoCompleteStrings = ["jay", "jason", "josh", "john", "jill", "jimmy", "jim"] } } employeeNameTextField.onSelect = {[weak self] text, indexpath in print(text) } }`
any thoughts?
I start typing and the tableview pops up like expected but it's blank. here are the func's I'm using swift 3 xcode 8 `
any thoughts?