Last active
December 29, 2015 23:11
-
-
Save kennylugo/f8854dd5c9343d6eb750 to your computer and use it in GitHub Desktop.
Control UI objects visibility - Used this code on UIPageViewController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this goes right under the declaration of the class : @IBOutlet weak var getStartedButton:UIButton! | |
//CONTROL VISIBILITY OF BUTTON; WILL ONLY SHOW ON THE SIXTH VC (INDEX 6); | |
getStartedButton.hidden = (index == 6) ? false : true // Will hide from indexes 0 - 6 | |
skipButton.hidden = (index == 6) ? true : false // Will show from indexes 0 - 6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment