I have a quiz look-a-like app. It shows up all questions often. How can I make them show up only 1 time, and so after last question, a message will pop up?
func nextText(){
let randomNumber = Int(arc4random_uniform(4))
var textLabel = "" as NSString
switch (randomNumber){
case 1:
textLabel = "Question1."
break
case 2:
textLabel = "Question2."
break
case 3:
textLabel = "Question3."
break
case 4:
textLabel = "Question4."
break
default:
textLabel = "Question 5"
}
self.textLabel.text = textLabel as? String
}
}