//實時監(jiān)測textField的值得變化
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(infoAction), name:UITextFieldTextDidChangeNotification , object: nil)
func infoAction()? {
if textView.text == nil {
textFieldClicked()
}
let tips = AMapInputTipsSearchRequest()
tips.keywords=textView.text
tips.city="合肥"
print(textView.text)
self.search.AMapInputTipsSearch(tips)
}