HIDE UIVIEW IN SWIFT
- Below code is to hide UIVIEW
- If you have two view then hide only one view and take button action event and any other events.
- Write below code in two different button to hide and unhide UIView in Swift
- In First button write as :
<pre>UIView.hidden = true </pre> // it’s means UIView is replace with your UIView name and it’s hides the view.
5. To unhide write below code :
<pre>UIView.hidden = false </pre> // to again show the UIView