I’m trying to create a custom editor for my UIViewController. It was suggested that I hide the textfields until the user presses the Edit key. How do you do this programmatically?
In other words when the user hits ‘Edit’ I would like the label to disappear and the Textfield to appear.
Thanks,
You can make use of the
hiddenproperty for quickly turning something visible or invisible.Another option is to set alpha to 0 to hide and 1 to show. This is beneficial if you want to have an animation fade the widgets in and out for a smooth transition.