I have a view ( UIScrollView ) that loads some data and displays various things from it in different subtitles. So I have about 10 subviews ( UIImageView, UILabel ) and I need to put them programmatically, given their unpredictable content (i.e. different height / width for the UILabel depending on the text property).
From what I read, there is no layout frame for Cocoa -touch.
What is the best way to do this?
From what I can say, I have to put the content in the views and then start calculating the coordinates based on their frames after calling their sizeToFit methods.
This approach is very error prone. Is there no other way?
Prody source share