我是swift的初学者。我有
class A : UIViewController {
var textInput: UITextInput
init(textInput: UITextInput) {
self.textInput = textInput
}
func getText() -> String() {
/// Here I need to get the current text from textInput
}
}
如何得到它?请帮忙。提前致谢!!!!