Closed xuanzi23 closed 8 years ago
private func handleTextFieldInterfaces(){ location.onTextChange = {[weak self] text in if !text.isEmpty{ if let dataTask = self?.dataTask { dataTask.cancel() } self?.fetchAutocompletePlaces(text) } } location.onSelect = {[weak self] text, indexpath in Location.geocodeAddressString(text, completion: { (placemark, error) -> Void in if let coordinate = placemark?.location?.coordinate { self?.addAnnotation(coordinate, address: text) self?.mapkit.setCenterCoordinate(coordinate, animated: true) } }) } }
i facing problem for on textchange
What you did to get it working in another project? I trying here but the autoCompleteString return nil
@leandropjp got any print screen?
i facing problem for on textchange