How can I hide and unhide images with one UIButton. Swift -


I want to hide these images and show them with the same button. Now I have 2 actions attached to a button. I repeat a touch down and touch down. With repeat touch down, I press the button twice to see the images. I want to see it once by pressing it to hide it. Anyone have any idea on how to handle it?

  @ Check the ebiquity func settings (Sender: UIButton) {c.hidden = true d.hidden = true e.hidden = true f.hidden = true g .hidden = true a.hidden = True b.hidden = true cFour.hidden = true settingsCheck.hidden = false} @IBAction func settingCheckButtonsUnhide (Sender: UIButton) {c.hidden = false d.hidden = false e.hidden = false F.hidden = false g.hidden = False a.hidden = false b.hidden = false cFour.hidden = false settingsCheck.hidden = true}  

You Just Should Use! Follow the actual hidden state to reverse it:

  Check the @ibouting function settings (Sender: UIButton) {c.hidden =! C.hidden d.hidden =! D.hidden e.hidden =! E.hidden f.hidden =! F.hidden g.hidden =! G.hidden a.hidden =! A.hidden b.hidden =! B.hidden cFour.hidden =! CFour.hidden}  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -