I have created a drop down with text and button, when the drop down button is clicked the data is populated in the UIAlertController
of type action sheet.
Now to replicate drop down behavior need to set the text of textfield as the clicked UIAlertActon
title.
But I am not able to find any way to fetch the title and set it as text of UITextField
. I am using swift.
Please suggest.