I was wondering whether it was possible to import static information, in my case an image, title and a short description - per item, in a ViewControlller dynamically?
I'm (trying to) create an app that, for the current ViewController I'm working on, shows the cooperating partners from the company in a list view. Each of them is shown as an item, containing an image (logo), the company name below and below that a paragraph of information about the company.
I was thinking of something like importing an XML feed (no experience with), such as
<object>
<img src="/images/logo1.png">
<title="Lorem ipsum>
<description="lalalalalalalala"
</object>
<object>
<img src="/images/logo2.png">
<title="Lorem second one>
<description="lalalalalalalala"
</object>
Something like this mockup
By simply importing such thing, I don't have to make up the whole page, calculate how long the scrollView
would have to be and don't have to adjust it every time a partner gets added or removed. And it might be quite more clear than a whole view controller.
I've got barely any Xcode experience, so please bare with me and explain in depth. Thank you big time!
No comments:
Post a Comment