I am showing a custom inputView for my UITextField like so
let inputView = UIView()
let button = UIButton()
inputView.backgroundColor = UIColor.redColor()
inputView.addSubview(button)
let tf = UITextField()
tf.inputView = inputView
Now when the button is clicked I would like the tf (UITextField)'s text to change.
In other words - from within my inputView how can I access the parent UITextField ?
Thanks!