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
Post a Comment