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