ios - How do i hide a button through the user pressing a button -


my app quiz app , trying when user selects incorrect answer either stop running quiz app , show button user go beginning. or hide buttons , labels except button go beginning. ever 1 easier.

please let me know! have tried things button1.hidden = true/yes doesn't hide button

thanks

@ibaction func button1action(sender: anyobject) {      if answernumber == 0 {         pickquestion()         labelend.text = "goodjob buddy"     }         else {         hide()         labelend.text = "unlucky pal"         again.hidden = false         questionlabel.hidden = true      } } 

uilabel , uibutton inherited uiview. , uiview has property 'ishidden'. so, if

someview.ishidden = true 

this work function , hide view layout! try again!


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -