iOS storyboard: how to handle dynamic, floating content?
-
29-10-2019 - |
Question
My App contains a news-section. I'm trying to create a View in my storyboard which will show an news item. A news contains of a title, a date, an image, and some text.
Content like this would be easy to display in HTML since it's content is floating, but as far as I understand iOS elements have a fixed size. I think a UILabel
could be fine for title and date, UIImage
for the image and a UITextView
for the text. I think all elements should be inside a scroll view. The problem is, that the title for some news will fill one line but for other news multiple lines.
How can I handle a setup like this in a storyboard? A link to a guide, tutorial would be fine.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow