I have a UITextField
on main ViewController
and once I touch down the Textfield UIPopOverController
with UIPickerView
opens which is from other class.now I want when I select any value in Pickerview
of popovercontroller
the selected value should display as UITextfield text
and In main Viewcontroller
when I pick any value in Pickerview
a method calls to print UITextfield text
but textfield.text
comes always null. but I used the Appdelegate sharedAppdeledate
which give me value on tapping on pickerview but when i used it to text the textfield it gets null. what should I Do.
and I want to add value on the UITextfield without removing the top view which is pickerview
pass your parent class object to your popovercontroller class and you'll be able to have access of the parent class property in child class and then you'll be able to set your textfield value selection on picker from popovercontroller class