0

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!

Prakash Raman
  • 13,319
  • 27
  • 82
  • 132

0 Answers0