Sometimes I want my view to contain 5 UILabel
s, sometimes 3 and sometimes n.
The number of UILabels depends on data that's fetched from a website.
Sometimes I want my view to contain 5 UILabel
s, sometimes 3 and sometimes n.
The number of UILabels depends on data that's fetched from a website.
A generic answer for a generic question:
You'll have to make them in code instead of interface builder
-Here UILable will be created dynamically. -but property will be set differently.
Create a
TextView
to show the text on the labels and aNSArray
to contain the data.For more information: