ios - How to transform Int to String? -


i need transform int string! use int in text field. transformed int string, not string!.

here's did

func checkanswer() {     var answerinint = string(stringinterpolationsegment: getquestion())     if answerbox.text == answerinstring {         questionlabel.text = getquestion().0         answerbox.text = ""     } else {     } } 

for optional string, how like:

var mystring : string? = string(answerinint)  

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -