CODEX-11 HIDE UIVIEW IN SWIFT

HIDE UIVIEW IN SWIFT

  1. Below code is to hide UIVIEW
  2. If you have two view then hide only one view and take button action event and any other events.
  3.  Write below code in two different button to hide and unhide UIView in Swift
  4. 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

Leave a Reply

Your email address will not be published. Required fields are marked *