In a UIStackView, I have four labels corresponding to four IBOutlet variables named lbl_0, lbl_1, lbl_2, lbl_3.
Sometimes, I need to set their value to an empty string. I thought I could do something "flashy" like the following:
// inside a loop body
cell["lbl_"+i].text = ""
but it seems I can't ("no subscript members" error).
So, aside from setting the value this way:
cell.lbl_0.text = ""
cell.lbl_1.text = ""
cell.lbl_2.text = ""
cell.lbl_3.text = ""
is there any other way to set the value of these labels?