swift - Hide back button -


i'm working on 1st real game. have 2 view controllers. 1st 1 has animated picture, , player can enter there names. 2nd 1 displaying game. after game on player can play again or reset. reset takes them 1st vc can give new names. question how hide reset until need it. put there made button , command dragged 1st vc , selected show.

thanks information might able give me.

if using ios predefined button try this:-

navigationitem.hidesbackbutton = true 

or if have dragged , drop uibarbutton create outlet , hide/show accordingly.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -