我提出一個應用程序添加一個新行,我想添加一個新行,在Teach.text如何在迅速label.text
func RandomQuestions(){
var RandomNumber = arc4random() % 1
RandomNumber += 1
switch(RandomNumber){
case 1:
QuestionLbl.hidden = false
QuestionLbl.text = "2x + 4 = 14"
Button1.setTitle("x = 5", forState: UIControlState.Normal)
Button2.setTitle("x = 4", forState: UIControlState.Normal)
Button3.setTitle("x = 9", forState: UIControlState.Normal)
Button4.setTitle("y = 5", forState: UIControlState.Normal)
Teach.text = "2x + 4 = 14"
CorrectAnswer = "1"
break
default:
break
}
}
因此,換句話說,我需要添加另一條線,所以當我測試我的應用程序中, '教' 應該說
2X + 4 = 14
2X = 10
是一個UILabel? – Peyman