Как вы можете обнаружить изменение данных в UITextView
с помощью Swift
? Следующий код не обнаруживает.
Я объявляю UITextView
:
@IBOutlet weak var bodyText: UITextView!
optional func textViewDidChange(_ textView: UITextView!) {
println(bodyText.text)
}
Спасибо Скотт