Question 1. How can I use a switch to hide/show a text field in Swift?
Question 2. How can I make the text field area be hidden and shown dynamically?
btw: I’m working on Swift storyboard.
My problem was caused by a hidden object, and it was solved after deleting it.
Thanks, everyone!
2
Answers
First take Outlet of textfield. Then show and hide textfield on switch’s ON & OFF State.