how to display all the items of array in label Xcode 8 -


i want ask how display items of array in label. i'm using xcode 8. saw teacher uses:

labelname.text = "\{arrayname}" 

but it's not works in xcode,

i have tried

for in 0..<arrayname.count     {                     labelname.text = arrayname[i]      } 

but it's show last item. thank xd

i realized that, made mistake "(" , "{"

it must this

label.text = "\(arrayname)" 

but want ask how display each item in each line? thank anyway xd


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -