ios - Printing string arrays to UILabels -


is there way print out array of strings uilabel without special characters, i.e. ["number1","number2","number3"]

i want in uilabel output:

 number1 number2 number3 

here code:

let addinputs = quantityfield.text! + "x " + descriptionfield.text!    var listarray: [string] = [] listarray.append("\(addinputs)")  addinputs in listarray {             //itemlistlabel.text = "\n\(addinputs)"             print("\(addinputs)")             itemlistlabel.text = "\(listarray)"         } 

you can join items \n add hard return:

itemlistlabel.text = listarray.joinwithseparator("\n") 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -