//实时监测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)
}